summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2004-11-09 19:06:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2004-11-09 19:06:19 +0000
commit2791957a5cb013272ff6f92880bc5414cfbd2538 (patch)
tree5e9ad5c2efccc77c745fc5d5d85cbe29f92c631f /sys/arch
parentb87d1e3fb744cf37a843f862ce5c72eb0335f631 (diff)
Fix single-stepping.
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mips64/mips64/trap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 03f1a8969f1..91c79c070c4 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.16 2004/10/30 14:49:39 pefo Exp $ */
+/* $OpenBSD: trap.c,v 1.17 2004/11/09 19:06:18 kettenis Exp $ */
/* tracked to 1.23 */
/*
@@ -150,7 +150,7 @@ extern void MipsFPTrap(u_int, u_int, u_int, union sigval);
register_t trap(struct trap_frame *);
int cpu_singlestep(struct proc *);
-u_long MipsEmulateBranch(struct trap_frame *, long, int, long);
+u_long MipsEmulateBranch(struct trap_frame *, long, int, u_int);
/*
* Handle an exception.
@@ -901,11 +901,11 @@ trapDump(msg)
* Return the resulting PC as if the branch was executed.
*/
unsigned long
-MipsEmulateBranch(framePtr, instPC, fpcCSR, instptr)
+MipsEmulateBranch(framePtr, instPC, fpcCSR, curinst)
struct trap_frame *framePtr;
long instPC;
int fpcCSR;
- long instptr;
+ u_int curinst;
{
InstFmt inst;
unsigned long retAddr;
@@ -916,8 +916,8 @@ MipsEmulateBranch(framePtr, instPC, fpcCSR, instptr)
((unsigned long)InstPtr + 4 + ((short)inst.IType.imm << 2))
- if (instptr) {
- inst = *(InstFmt *)&instptr;
+ if (curinst) {
+ inst = *(InstFmt *)&curinst;
}
else {
inst = *(InstFmt *)instPC;