arch-power: Initialize PC State
authorkajoljain379 <kajoljain797@gmail.com>
Sat, 12 Jan 2019 08:06:30 +0000 (13:36 +0530)
committerKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 07:06:03 +0000 (12:36 +0530)
Initialize PC state to 0x100.

Change-Id: Id130d161e40d287dfb1a1f97d5e1d58dfa0f2303
Signed-off-by: kajoljain379 <kajoljain797@gmail.com>
src/arch/power/system.cc

index 46ff26f486c5ea5ca6353a4dad8d2dbf7ceb70c5..389bc625bdf177037d091d98615bbb9c16483694 100644 (file)
@@ -78,4 +78,6 @@ PowerSystem::initState()
     //ArgumentReg0 is initialized with 0xc00000 because in linux/system.cc
     //dtb is loaded at 0xc00000
     tc->setIntReg(ArgumentReg0, 0x1800000);
+    /* Perform a system reset */
+    tc->pcState(0x100);
 }