arch-arm: serialize miscregs as a map
authorCiro Santilli <ciro.santilli@arm.com>
Thu, 15 Oct 2020 13:31:46 +0000 (14:31 +0100)
committerCiro Santilli <ciro.santilli@arm.com>
Mon, 23 Nov 2020 16:51:08 +0000 (16:51 +0000)
commit5d47dbff41c37897cc3111ceae1275e75aafc195
tree0d62a5869cdb68d9798af947acd21434a8884dc1
parent91aa2f82b4f2a9b954d2f8f394ecc183bf1e2445
arch-arm: serialize miscregs as a map

This will prevent checkpoints from breaking on every miscreg addition.

Before this commit, miscregs were stored as an array:

[system.cpu.isa]
miscRegs=965 0 0 0 0 0 0 0 0 0 0 0 17895697 ...

and after this commit they are stored as a map:

[system.cpu.isa]

[system.cpu.isa.miscRegs]
cpsr=965
spsr=0
spsr_fiq=0
spsr_irq=0
spsr_svc=0
spsr_mon=0
spsr_abt=0
spsr_hyp=0
spsr_und=0
elr_hyp=0
fpsid=0
fpscr=0
mvfr1=17895697

JIRA: https://gem5.atlassian.net/browse/GEM5-661
Change-Id: I49999c7206bd9ac1cfb81297d45c8117ff8ae675
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36116
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa.cc