diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-09-07 15:02:16 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-09 12:58:16 -0500 |
commit | fa4e49c0c02f728e86df50a1c4a4011de8ca1225 (patch) | |
tree | 15b074746d1756925fae2e4fb87cda1679da1343 /target-unicore32/translate.c | |
parent | ad8b818686623ea4ad300a7a144fcfb2bce77050 (diff) |
Use hex instead of binary.
Older gcc versions don't understand 0b<bits>,
use hex representation instead.
Fixes build failure on RHEL-5.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-unicore32/translate.c')
-rw-r--r-- | target-unicore32/translate.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 4ecb0f1704..4d0aa43da2 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c @@ -1788,7 +1788,7 @@ static void disas_uc32_insn(CPUState *env, DisasContext *s) * E : 5 */ switch (insn >> 29) { - case 0b000: + case 0x0: if (UCOP_SET(5) && UCOP_SET(8) && !UCOP_SET(28)) { do_mult(env, s, insn); break; @@ -1798,7 +1798,7 @@ static void disas_uc32_insn(CPUState *env, DisasContext *s) do_misc(env, s, insn); break; } - case 0b001: + case 0x1: if (((UCOP_OPCODES >> 2) == 2) && !UCOP_SET_S) { do_misc(env, s, insn); break; @@ -1806,7 +1806,7 @@ static void disas_uc32_insn(CPUState *env, DisasContext *s) do_datap(env, s, insn); break; - case 0b010: + case 0x2: if (UCOP_SET(8) && UCOP_SET(5)) { do_ldst_hwsb(env, s, insn); break; @@ -1814,24 +1814,24 @@ static void disas_uc32_insn(CPUState *env, DisasContext *s) if (UCOP_SET(8) || UCOP_SET(5)) { ILLEGAL; } - case 0b011: + case 0x3: do_ldst_ir(env, s, insn); break; - case 0b100: + case 0x4: if (UCOP_SET(8)) { ILLEGAL; /* extended instructions */ } do_ldst_m(env, s, insn); break; - case 0b101: + case 0x5: do_branch(env, s, insn); break; - case 0b110: + case 0x6: /* Coprocessor. */ disas_coproc_insn(env, s, insn); break; - case 0b111: + case 0x7: if (!UCOP_SET(28)) { disas_coproc_insn(env, s, insn); break; |