bochs: backport decoding of CRC32 instr fix
Upstream SVN r10223 Backport was neccessary, because the CRC32 assambly instruction did not work as expected in bochs.
This commit is contained in:
@ -1192,6 +1192,19 @@ bx_bool BX_CPU_C::hwbreakpoint_check(bx_address laddr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BX_CPU_C::code_breakpoint_match(bx_address laddr)
|
||||
{
|
||||
if (BX_CPU_THIS_PTR dr7 & 0x000000ff) {
|
||||
Bit32u dr6_bits = hwdebug_compare(iaddr, 1, BX_HWDebugInstruction, BX_HWDebugInstruction);
|
||||
if (dr6_bits) {
|
||||
// Add to the list of debug events thus far.
|
||||
BX_CPU_THIS_PTR debug_trap |= dr6_bits;
|
||||
BX_ERROR(("#DB: x86 code breakpoint catched"));
|
||||
exception(BX_DB_EXCEPTION, 0); // no error, not interrupt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BX_CPU_C::hwbreakpoint_match(bx_address laddr, unsigned len, unsigned rw)
|
||||
{
|
||||
if (BX_CPU_THIS_PTR dr7 & 0x000000ff) {
|
||||
|
||||
Reference in New Issue
Block a user