Fix addresses being truncated
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 Oct 2014 03:23:16 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/arm/common.h
→
src/arm/common.h
@@ -23,7 +23,7 @@ asm("lwbrx %0, %1, %2" : "=r"(DEST) : "r"(_tmp), "p"(ARR)); \
} #define LOAD_16(DEST, ADDR, ARR) { \ - uint16_t _tmp = (ADDR); \ + uint32_t _tmp = (ADDR); \ asm("lhbrx %0, %1, %2" : "=r"(DEST) : "r"(_tmp), "p"(ARR)); \ }@@ -33,7 +33,7 @@ asm("stwbrx %0, %1, %2" : : "r"(SRC), "r"(_tmp), "p"(ARR)); \
} #define STORE_16(SRC, ADDR, ARR) { \ - uint16_t _tmp = (ADDR); \ + uint32_t _tmp = (ADDR); \ asm("sthbrx %0, %1, %2" : : "r"(SRC), "r"(_tmp), "p"(ARR)); \ } #else