From 9eda6b1d88a4bdd466964065dd6009bdcedfcb92 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 18 Sep 2011 23:26:39 -0700 Subject: Pseudoinst: Add an initParam pseudo inst function. --- src/arch/alpha/isa/decoder.isa | 2 +- src/arch/arm/isa/insts/m5ops.isa | 2 +- src/arch/x86/isa/decoder/two_byte_opcodes.isa | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/arch') diff --git a/src/arch/alpha/isa/decoder.isa b/src/arch/alpha/isa/decoder.isa index f0aa5a3fd..359c6b3b2 100644 --- a/src/arch/alpha/isa/decoder.isa +++ b/src/arch/alpha/isa/decoder.isa @@ -985,7 +985,7 @@ decode OPCODE default Unknown::unknown() { PseudoInst::loadsymbol(xc->tcBase()); }}, No_OpClass, IsNonSpeculative); 0x30: initparam({{ - Ra = xc->tcBase()->getCpuPtr()->system->init_param; + Ra = PseudoInst::initParam(xc->tcBase()); }}); #endif 0x40: resetstats({{ diff --git a/src/arch/arm/isa/insts/m5ops.isa b/src/arch/arm/isa/insts/m5ops.isa index 9bd1f4f01..e891a0a91 100644 --- a/src/arch/arm/isa/insts/m5ops.isa +++ b/src/arch/arm/isa/insts/m5ops.isa @@ -203,7 +203,7 @@ let {{ initparamCode = ''' #if FULL_SYSTEM - Rt = xc->tcBase()->getCpuPtr()->system->init_param; + Rt = PseudoInst::initParam(xc->tcBase()); #endif ''' diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa index 11cd6eeb1..f856f2d37 100644 --- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa +++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa @@ -161,8 +161,7 @@ }}, IsNonSpeculative); #if FULL_SYSTEM 0x30: m5initparam({{ - Rax = xc->tcBase()->getCpuPtr()-> - system->init_param; + Rax = PseudoInst::initParam(xc->tcBase()); }}, IsNonSpeculative); 0x31: m5loadsymbol({{ PseudoInst::loadsymbol(xc->tcBase()); -- cgit v1.2.3