From: Kajol Jain Date: Tue, 18 Jun 2019 08:23:22 +0000 (+0530) Subject: arch-power: Set initial register state before loading OPAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fc53f0ceb34349d6ee6a8a1a1d5ed65e3bc94fa;p=gem5.git arch-power: Set initial register state before loading OPAL Change-Id: If4d753a96652e3bde5b2a992d64def64138ac518 Signed-off-by: Kajol Jain --- diff --git a/src/arch/power/isa/decoder.isa b/src/arch/power/isa/decoder.isa index 9e89d7419..e5b9766b3 100644 --- a/src/arch/power/isa/decoder.isa +++ b/src/arch/power/isa/decoder.isa @@ -626,6 +626,7 @@ decode PO default Unknown::unknown() { 0x3a1: mfiamr({{Rt = IAMR;}}); 0x3a4: mfuamor({{ Rt = UAMOR; }}, [ IsPrivileged ]); 0x3aa: mfamor({{Rt = AMOR;}}); + 0x3a9: mfspr({{ }}); 0x3c5: mfhfscr({{Rt = HFSCR;}}); 0x3c9: mflpcr({{Rt = LPCR;}}); 0x3E8: mfpvr({{ Rt = PVR; }}); diff --git a/src/arch/power/system.cc b/src/arch/power/system.cc index 2acee2695..32580d15f 100644 --- a/src/arch/power/system.cc +++ b/src/arch/power/system.cc @@ -87,7 +87,11 @@ PowerSystem::initState() tc->setIntReg(ArgumentReg0, 0x1800000); ThreadID tid = 1; ThreadContext *tc1 = threadContexts[tid]; - tc1->pcState(0xc00000000000a840); - tc1->setIntReg(ArgumentReg0, 0x1); + tc1->pcState(0x10); + tc1->setIntReg(INTREG_PVR , 0x004e0200); + tc1->setIntReg(INTREG_MSR , msr); + tc1->setIntReg(ArgumentReg0, 0x1800000); + //tc1->pcState(0xc00000000000a840); + //tc1->setIntReg(ArgumentReg0, 0x1); tc1->setIntReg(INTREG_PIR,0x1); }