Read about our upcoming Code of Conduct on this issue

Commit d59f92a0 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

patch.c: fix warning

--HG--
branch : patchmgr
parent c0ad5e3bb7a8
......@@ -174,7 +174,9 @@ static uint32_t read_value(uint32_t* addr, int is_instruction)
dbg_printf("Read from ROM: %x -> %x\n", addr, MEM(addr));
}
#ifdef CONFIG_QEMU
read_from_ram:
#endif
/* trick required because we don't have unaligned memory access */
switch ((uintptr_t)addr & 3)
{
......@@ -227,7 +229,9 @@ static int do_patch(uint32_t* addr, uint32_t value, int is_instruction)
addr = UNCACHEABLE(addr);
}
#ifdef CONFIG_QEMU
write_to_ram:
#endif
/* trick required because we don't have unaligned memory access */
switch ((uintptr_t)addr & 3)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment