diff --git a/src/arch/arm/semihosting.hh b/src/arch/arm/semihosting.hh index 8ebe7e9eb3..d01b4e4e99 100644 --- a/src/arch/arm/semihosting.hh +++ b/src/arch/arm/semihosting.hh @@ -91,13 +91,13 @@ class ArmSemihosting : public BaseSemihosting { using UintPtr = uint64_t; - class State : public StateBase + class State : public StateBase { public: // For 64 bit semihosting, the params are pointer to by X1. explicit State(const ThreadContext *tc) : - StateBase(tc, + StateBase(tc, tc->getReg(ArmISA::int_reg::X1), &ArmISA::byteOrder) {} }; @@ -107,13 +107,13 @@ class ArmSemihosting : public BaseSemihosting { using UintPtr = uint32_t; - class State : public StateBase + class State : public StateBase { public: // For 32 bit semihosting, the params are pointer to by R1. explicit State(const ThreadContext *tc) : - StateBase(tc, + StateBase(tc, tc->getReg(ArmISA::int_reg::R1), &ArmISA::byteOrder) {} };