diff options
author | Jeff Law <law@redhat.com> | 1997-07-02 18:41:22 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-07-02 18:41:22 +0000 |
commit | 644352348471a98251077f8b19cf810dea885259 (patch) | |
tree | 2613347223f173b8e501c759ac46aae5824ea6bc /sim | |
parent | 649625bb8e871ba65ad97b9bc7323b488739d466 (diff) | |
download | fsf-binutils-gdb-644352348471a98251077f8b19cf810dea885259.zip fsf-binutils-gdb-644352348471a98251077f8b19cf810dea885259.tar.gz fsf-binutils-gdb-644352348471a98251077f8b19cf810dea885259.tar.bz2 |
* gencode.c (build_instruction): Handle "pext5" according to
version 1.95 of the r5900 ISA.
Fixes pr12413 (c/h from toshiba).
Diffstat (limited to 'sim')
-rw-r--r-- | sim/mips/ChangeLog | 3 | ||||
-rw-r--r-- | sim/mips/gencode.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 27a0027..c654013 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,6 +1,9 @@ Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com) start-sanitize-r5900 + * gencode.c (build_instruction): Handle "pext5" according to + version 1.95 of the r5900 ISA. + * gencode.c (build_instruction): Handle "ppac5" according to version 1.95 of the r5900 ISA. end-sanitize-r5900 diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index fbe9c52..ceb471d 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -3982,7 +3982,7 @@ build_instruction (doisa, features, mips16, insn) printf("for(i=0;i<WORDS_IN_MMI_REGS;i++)\n"); printf(" {\n"); printf(" int x = RT_UW(i);\n"); - printf(" GPR_UW(destreg,i) = ((x & (1 << 15)) << (24 - 15)) \n"); + printf(" GPR_UW(destreg,i) = ((x & (1 << 15)) << (31 - 15)) \n"); printf(" | ((x & (31 << 10)) << (19 - 10)) \n"); printf(" | ((x & (31 << 5)) << (11 - 5)) \n"); printf(" | ((x & (31 << 0)) << (3 - 0)); \n"); |