From bd0cad685cebdaadb349290bfc3cc31f4367ab75 Mon Sep 17 00:00:00 2001 From: Bob Supnik Date: Thu, 5 Oct 2017 18:55:00 -0700 Subject: [PATCH] alpha: Fixed reversed definitions of FTOIS, FTOIT (Maurice Marks) --- alpha/alpha_cpu.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/alpha/alpha_cpu.c b/alpha/alpha_cpu.c index 14d9faf0..6b9ad479 100644 --- a/alpha/alpha_cpu.c +++ b/alpha/alpha_cpu.c @@ -23,6 +23,7 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Robert M Supnik. + 05-Oct-2017 RMS Fixed reversed definitions of FTOIS, FTOIT (Maurice Marks) 27-May-2017 RMS Fixed MIN/MAXx4 iteration counts (Mark Pizzolato) 26-May-2017 RMS Fixed other reversed definitions in opcode 12 28-Apr-2017 RMS Fixed reversed definitions of INSQH, EXTQH (Maurice Marks) @@ -1498,18 +1499,18 @@ while (reason == 0) { } break; - case 0x70: /* FTOIS */ - if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); - if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ - res = op_sts (FR[ra]); - break; - - case 0x78: /* FTOIT */ + case 0x70: /* FTOIT */ if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ res = FR[ra]; break; + case 0x78: /* FTOIS */ + if (!(arch_mask & AMASK_FIX)) ABORT (EXC_RSVI); + if (fpen == 0) ABORT (EXC_FPDIS); /* flt point disabled? */ + res = op_sts (FR[ra]); + break; + default: ABORT (EXC_RSVI); }