Use fuword32() to fetch instructions, this will work on both 32 and 64 bit

compilation.
This commit is contained in:
jchandra 2010-07-31 19:11:38 +00:00
parent 0c01965ab6
commit 4e458c0f7d

View File

@ -820,7 +820,7 @@ dofault:
va += sizeof(int);
/* read break instruction */
instr = fuword((caddr_t)va);
instr = fuword32((caddr_t)va);
#if 0
printf("trap: %s (%d) breakpoint %x at %x: (adr %x ins %x)\n",
p->p_comm, p->p_pid, instr, trapframe->pc,
@ -869,7 +869,7 @@ dofault:
if (DELAYBRANCH(trapframe->cause))
va += sizeof(int);
/* read break instruction */
instr = fuword((caddr_t)va);
instr = fuword32((caddr_t)va);
if (DELAYBRANCH(trapframe->cause)) { /* Check BD bit */
locr0->pc = MipsEmulateBranch(locr0, trapframe->pc, 0,