From 2d9fbc6954d3916e91e47a7937f7ebaf5671dedf Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 27 Feb 2014 03:57:20 +0000 Subject: [PATCH 1/1] [FAST486] Fix the previous commit. FPU_CHECK should be called after the fetch. svn path=/branches/ntvdm/; revision=62345 --- lib/fast486/fpu.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/fast486/fpu.c b/lib/fast486/fpu.c index a4a35116066..a39131ab474 100644 --- a/lib/fast486/fpu.c +++ b/lib/fast486/fpu.c @@ -37,8 +37,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -46,6 +44,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -61,8 +61,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -70,6 +68,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -85,8 +85,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -94,6 +92,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -109,8 +109,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -118,6 +116,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -133,8 +133,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -142,6 +140,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -157,8 +157,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -166,6 +164,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -181,8 +181,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -190,6 +188,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -205,8 +205,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -214,6 +212,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; -- 2.17.1