arm: Stop serializing ISA values wihch are cached from the system.
authorGabe Black <gabeblack@google.com>
Mon, 4 Nov 2019 23:48:52 +0000 (15:48 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 25 Nov 2019 23:11:09 +0000 (23:11 +0000)
These values are not really part of the ISA state and could be
retrieved from the system during execution. Also these values are
already being set in the ISA constructor.

Change-Id: Iea5f9bbb27add4ecebc6391da6c1c1e49e76508f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22543
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa.hh

index ff889fa7de8ed892f4c3199ffecf77ed42d42811..fea372ed403fd81e9b72f448d56f9bc2d1d4727d 100644 (file)
@@ -693,39 +693,20 @@ namespace ArmISA
         static void zeroSveVecRegUpperPart(VecRegContainer &vc,
                                            unsigned eCount);
 
-        void serialize(CheckpointOut &cp) const
+        void
+        serialize(CheckpointOut &cp) const
         {
             DPRINTF(Checkpoint, "Serializing Arm Misc Registers\n");
             SERIALIZE_ARRAY(miscRegs, NUM_PHYS_MISCREGS);
-
-            SERIALIZE_SCALAR(highestELIs64);
-            SERIALIZE_SCALAR(haveSecurity);
-            SERIALIZE_SCALAR(haveLPAE);
-            SERIALIZE_SCALAR(haveVirtualization);
-            SERIALIZE_SCALAR(haveLargeAsid64);
-            SERIALIZE_SCALAR(physAddrRange);
-            SERIALIZE_SCALAR(haveSVE);
-            SERIALIZE_SCALAR(sveVL);
-            SERIALIZE_SCALAR(haveLSE);
-            SERIALIZE_SCALAR(havePAN);
         }
-        void unserialize(CheckpointIn &cp)
+
+        void
+        unserialize(CheckpointIn &cp)
         {
             DPRINTF(Checkpoint, "Unserializing Arm Misc Registers\n");
             UNSERIALIZE_ARRAY(miscRegs, NUM_PHYS_MISCREGS);
             CPSR tmp_cpsr = miscRegs[MISCREG_CPSR];
             updateRegMap(tmp_cpsr);
-
-            UNSERIALIZE_SCALAR(highestELIs64);
-            UNSERIALIZE_SCALAR(haveSecurity);
-            UNSERIALIZE_SCALAR(haveLPAE);
-            UNSERIALIZE_SCALAR(haveVirtualization);
-            UNSERIALIZE_SCALAR(haveLargeAsid64);
-            UNSERIALIZE_SCALAR(physAddrRange);
-            UNSERIALIZE_SCALAR(haveSVE);
-            UNSERIALIZE_SCALAR(sveVL);
-            UNSERIALIZE_SCALAR(haveLSE);
-            UNSERIALIZE_SCALAR(havePAN);
         }
 
         void startup(ThreadContext *tc);