diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-13 17:31:01 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-13 17:31:01 +0000 |
commit | 91cf4d88fbb174ba5a4ade9c4479f3b0775a5599 (patch) | |
tree | c809d9c404eaaaaca9b100d721ae40fc6d4ffb8b | |
parent | a96fc003bd347fc85d0eff0e9bf5839e73385c7b (diff) |
gcc 3.2.2 bug workaround (RedHat 9 fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@326 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | ops_template_mem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops_template_mem.h b/ops_template_mem.h index f1209d2aa0..eacaabba5c 100644 --- a/ops_template_mem.h +++ b/ops_template_mem.h @@ -44,6 +44,9 @@ void OPPROTO glue(glue(op_rol, MEM_SUFFIX), _T0_T1_cc)(void) T0 = (T0 << count) | (T0 >> (DATA_BITS - count)); #ifdef MEM_WRITE glue(st, SUFFIX)((uint8_t *)A0, T0); +#else + /* gcc 3.2 workaround. This is really a bug in gcc. */ + asm volatile("" : : "r" (T0)); #endif CC_SRC = (cc_table[CC_OP].compute_all() & ~(CC_O | CC_C)) | (lshift(src ^ T0, 11 - (DATA_BITS - 1)) & CC_O) | @@ -63,6 +66,9 @@ void OPPROTO glue(glue(op_ror, MEM_SUFFIX), _T0_T1_cc)(void) T0 = (T0 >> count) | (T0 << (DATA_BITS - count)); #ifdef MEM_WRITE glue(st, SUFFIX)((uint8_t *)A0, T0); +#else + /* gcc 3.2 workaround. This is really a bug in gcc. */ + asm volatile("" : : "r" (T0)); #endif CC_SRC = (cc_table[CC_OP].compute_all() & ~(CC_O | CC_C)) | (lshift(src ^ T0, 11 - (DATA_BITS - 1)) & CC_O) | |