Gah, fix two typos.
This commit is contained in:
parent
241ca3464c
commit
4ee192103f
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.12 2019/11/17 22:53:33 christos Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.13 2021/11/22 16:41:00 thorpej Exp $
|
||||
|
||||
.PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
|
||||
|
||||
|
@ -13,7 +13,7 @@ COPTS.libunwind.cxx+= -fno-exceptions -fvisibility=hidden
|
|||
COPTS.libunwind.cxx+= -Wno-old-style-cast
|
||||
CPPFLAGS.libunwind.cxx+=-I${NETBSDSRCDIR}/sys/lib/libunwind
|
||||
|
||||
.if ${LIBC_MACHINE_CPU} == "arm"
|
||||
COPTS.libunwind.cxx+= ${${ACTIVE_CC} == "gcc":? -mfpu=vfp3 :}
|
||||
AFLAGS.unwind_registers.S+= ${${ACTIVE_CC} == "clang":? -mfpu=vfp3 :}
|
||||
.endif
|
||||
#.if ${LIBC_MACHINE_CPU} == "arm"
|
||||
#COPTS.libunwind.cxx+= ${${ACTIVE_CC} == "gcc":? -mfpu=vfp3 :}
|
||||
#AFLAGS.unwind_registers.S+= ${${ACTIVE_CC} == "clang":? -mfpu=vfp3 :}
|
||||
#.endif
|
||||
|
|
|
@ -324,14 +324,14 @@ public:
|
|||
|
||||
uint64_t getRegister(int num) const {
|
||||
assert(validRegister(num));
|
||||
if (reg == REGNO_AARCH64_SIGRETURN)
|
||||
if (num == REGNO_AARCH64_SIGRETURN)
|
||||
return sigreturn_reg;
|
||||
return reg[num];
|
||||
}
|
||||
|
||||
void setRegister(int num, uint64_t value) {
|
||||
assert(validRegister(num));
|
||||
if (reg == REGNO_AARCH64_SIGRETURN)
|
||||
if (num == REGNO_AARCH64_SIGRETURN)
|
||||
sigreturn_reg = value;
|
||||
else
|
||||
reg[num] = value;
|
||||
|
|
Loading…
Reference in New Issue