diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-30 16:43:12 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-30 16:43:12 +0000 |
commit | b86637866e03f9489f34e6ce7aa9697b80dc6c55 (patch) | |
tree | e4fef06c03f1bd6a5f104830ca28a45433439495 /sys/arch/m88k/include | |
parent | 0573c1856cf51ce394800f01cdeca1a9b89b1278 (diff) |
A simpler and better SET_PC_REGS().
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r-- | sys/arch/m88k/include/db_machdep.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/m88k/include/db_machdep.h b/sys/arch/m88k/include/db_machdep.h index 49d26399b42..2119090ff77 100644 --- a/sys/arch/m88k/include/db_machdep.h +++ b/sys/arch/m88k/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.5 2005/04/30 16:42:36 miod Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.6 2005/04/30 16:43:11 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -49,14 +49,8 @@ #define SET_PC_REGS(regs, value) \ do { \ - if (CPU_IS88110) \ - (regs)->exip = ((regs)->exip & ~XIP_ADDR) | old_pc; \ - else if ((regs)->sxip & XIP_V) \ - (regs)->sxip = ((regs)->sxip & ~XIP_ADDR) | old_pc; \ - else if ((regs)->snip & NIP_V) \ - (regs)->snip = ((regs)->snip & ~NIP_ADDR) | old_pc; \ - else \ - (regs)->sfip = ((regs)->sfip & ~FIP_ADDR) | old_pc; \ + (regs)->sxip = (value); \ + (regs)->snip = (value) + 4; \ } while (0) /* inst_return(ins) - is the instruction a function call return. |