From cc5201d78c016dc38c3dfbbb22b1332b80f88589 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 19 Sep 1996 19:35:09 +0000 Subject: [PATCH] * gencode.c (process_instructions): Correct handling of nor instruction. --- sim/mips/ChangeLog | 5 +++++ sim/mips/gencode.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 9acd9c3b3ad..3c0099f6d9f 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 19 15:34:17 1996 Ian Lance Taylor + + * gencode.c (process_instructions): Correct handling of nor + instruction. + Mon Sep 16 11:38:16 1996 James G. Smith * interp.c (sim_monitor): Improved monitor printf diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index 1e0dbf7a12c..0dda11cd014 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -1240,7 +1240,7 @@ process_instructions(doarch,features) break ; case OR: - printf(" GPR[destreg] = (%sop1 | op2);\n",((MIPS_DECODE[loop].flags & NOT) ? "~" : "")); + printf(" GPR[destreg] = %s(op1 | op2);\n",((MIPS_DECODE[loop].flags & NOT) ? "~" : "")); break ; case XOR: -- 2.30.2