Mask off the lowest two bits of the disassembly start address. This avoids
misaligned references caused by the SHmedia bit.
This commit is contained in:
parent
b397b57870
commit
31a6b2aa80
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_disasm.c,v 1.11 2002/12/06 10:12:13 scw Exp $ */
|
||||
/* $NetBSD: db_disasm.c,v 1.12 2003/05/17 09:31:33 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2002 Wasabi Systems, Inc.
|
||||
|
@ -1091,6 +1091,11 @@ db_disasm(db_addr_t loc, boolean_t dummy)
|
|||
opcode_t op;
|
||||
const char *mnemonic, *comma = "";
|
||||
|
||||
/*
|
||||
* Ditch the SHmedia bit
|
||||
*/
|
||||
loc &= ~3;
|
||||
|
||||
if (loc < SH5_KSEG0_BASE) {
|
||||
op = fuword((void *)loc);
|
||||
if (op == 0xffffffff) {
|
||||
|
|
Loading…
Reference in New Issue