diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-11-11 19:09:29 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-11-11 19:09:29 +0000 |
commit | 0d0281b1dd4c1b5ce715463f827ae004c3399e66 (patch) | |
tree | beae3e1fa04a2cad9797d8f9500b6873b7d49ebf /usr.bin/pmdb/arch | |
parent | 8fa412dce4e707cdf0d07886b654372218759694 (diff) |
fp regs also
Diffstat (limited to 'usr.bin/pmdb/arch')
-rw-r--r-- | usr.bin/pmdb/arch/mips64/mips64.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/pmdb/arch/mips64/mips64.c b/usr.bin/pmdb/arch/mips64/mips64.c index d283eefa4fc..1af5d0eee81 100644 --- a/usr.bin/pmdb/arch/mips64/mips64.c +++ b/usr.bin/pmdb/arch/mips64/mips64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mips64.c,v 1.1 2004/11/11 18:47:14 pefo Exp $ */ +/* $OpenBSD: mips64.c,v 1.2 2004/11/11 19:09:28 pefo Exp $ */ /* * Copyright (c) 2002 Dale Rahn <drahn@openbsd.org> * All rights reserved. @@ -38,10 +38,15 @@ static const char *md_reg_names[] = { "a4", "a5", "a6","a7","t0","t1","t2","t3", "s0","s1","s2","s3","s4","s5","s6","s7", "t8","t9","k0","k1","gp","sp","s8","ra", - "sr", "mullo", "mulhi", "badvaddr", "cause", "pc" + "sr", "mullo", "mulhi", "badvaddr", "cause", "pc", "ic", "cpl" + "$f0", "$f1", "$f2", "$f3", "$f4", "$f5", "$f6", "$f7", + "$f8", "$f9", "$f10", "$f11", "$f12", "$f13", "$f14", "$f15", + "$f16", "$f17", "$f18", "$f19", "$f20", "$f21", "$f22", "$f23", + "$f24", "$f25", "$f26", "$f27", "$f28", "$f29", "$f30", "$f31", + "fsr" }; -struct md_def md_def = { md_reg_names, 38, 38}; +struct md_def md_def = { md_reg_names, NREGS, PC}; void md_def_init(void) @@ -85,6 +90,6 @@ md_getregs(struct pstate *ps, reg *regs) struct reg md_reg; if (process_getregs(ps, &md_reg)) return -1; - memcpy(regs, &md_reg, 38 * sizeof(long)); + memcpy(regs, &md_reg, NREGS * sizeof(long)); return 0; } |