From 31ea453921a2d5fc8c231c805a2a5e982992414f Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sat, 2 Dec 2017 16:40:03 +0000 Subject: [PATCH] fixed bogus assert --- bochs/cpu/decoder/fetchdecode32.cc | 2 +- bochs/cpu/decoder/fetchdecode64.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/cpu/decoder/fetchdecode32.cc b/bochs/cpu/decoder/fetchdecode32.cc index 902974cab..70bf90821 100644 --- a/bochs/cpu/decoder/fetchdecode32.cc +++ b/bochs/cpu/decoder/fetchdecode32.cc @@ -2729,7 +2729,7 @@ fetch_b1: else if (ia_opcode == BX_IA_MOV_RdCR0) i->setSrcReg(1, 8); // extend CR0 -> CR8 else - assert(0); + i->setIaOpcode(BX_IA_ERROR); // replace execution function with undefined-opcode } else #endif diff --git a/bochs/cpu/decoder/fetchdecode64.cc b/bochs/cpu/decoder/fetchdecode64.cc index 0981a6b68..261af9e79 100644 --- a/bochs/cpu/decoder/fetchdecode64.cc +++ b/bochs/cpu/decoder/fetchdecode64.cc @@ -2469,7 +2469,7 @@ fetch_b1: else if (ia_opcode == BX_IA_MOV_RqCR0) i->setSrcReg(1, 8); // extend CR0 -> CR8 else - assert(0); + i->setIaOpcode(BX_IA_ERROR); // replace execution function with undefined-opcode } else { // replace execution function with undefined-opcode