openbsd-ports/emulators/bochs/patches/patch-cpu_fetchdecode_cc
todd 923f7975fe o take over maintainership
o too many changes to mention specifically, but amongst them:
	- better error reporting
	- openbsd boots, freebsd boots
	- new 'term' flavor, I added a textmode interface, the only drawback
	  is that control-c is intercepted, and you must kill -9 it from
	  another tty if it doesn't exit normally
	- new flavors:
		- debugger -> debug (for shortness)
		- i386
		- pci
		- smp
		- net (compiles, does not yet provide networking, if anyone
			wants to help, I'd be ELATED to have this fixed!)
		- no_x11 (made it actually work)
		- term (make sure to use 'log: /dev/null' or something else
		  on the cmdline, otherwise, debugging and the screen will
		  start getting quite confusing!)
	- better error reporting (and no error reporting where it is not
	  necessary; a typicall boot of cdrom28.fs is a screenful of output now)
	- in general, if the hardware reaches an unknown state, fail
	  gracefully instead of calling exit(1) .. are we trying to work or
	  are we trying to .. fail?  I like working myself.
2001-02-02 16:59:05 +00:00

43 lines
1.4 KiB
Plaintext

$OpenBSD: patch-cpu_fetchdecode_cc,v 1.1 2001/02/02 16:59:08 todd Exp $
--- cpu/fetchdecode.cc.orig Sat Mar 25 21:39:08 2000
+++ cpu/fetchdecode.cc Tue Oct 17 12:04:01 2000
@@ -1458,7 +1458,7 @@ another_byte:
break;
default:
-bx_panic("fetch_decode: prefix default = 0x%02x\n", b1);
+bio->panic("fetch_decode: prefix default = 0x%02x\n", b1);
}
}
// opcode requires another byte
@@ -1867,8 +1867,8 @@ modrm_done:
}
break;
default:
-bx_printf("b1 was %x\n", b1);
- bx_panic("fetchdecode: imm_mode = %u\n", imm_mode);
+bio->printf("b1 was %x\n", b1);
+ bio->panic("fetchdecode: imm_mode = %u\n", imm_mode);
}
}
@@ -1884,10 +1884,7 @@ bx_printf("b1 was %x\n", b1);
BxError(BxInstruction_t *i)
{
// extern void dump_core();
- bx_printf("BxError: instruction with op1=0x%x\n", i->b1);
- bx_printf("nnn was %u\n", i->nnn);
-
- bx_printf("WARNING: Encountered an unknown instruction (signalling illegal instruction):\n");
+ bio->printf("BxError: instruction with op1=0x%x, nnn = %u, unknown instruction\n", i->b1, i->nnn);
// dump_core();
BX_CPU_THIS_PTR UndefinedOpcode(i);
@@ -1896,5 +1893,5 @@ BxError(BxInstruction_t *i)
void
BxResolveError(BxInstruction_t *i)
{
- bx_panic("BxResolveError: instruction with op1=0x%x\n", i->b1);
+ bio->panic("BxResolveError: instruction with op1=0x%x\n", i->b1);
}