diff options
author | Giacomo Gabrielli <giacomo.gabrielli@arm.com> | 2018-10-16 16:09:02 +0100 |
---|---|---|
committer | Giacomo Gabrielli <giacomo.gabrielli@arm.com> | 2019-03-14 10:42:27 +0000 |
commit | c4cc3145cd1eeed236b5cd3f7b2424bc0761878e (patch) | |
tree | b38eab6f5f389dfc53c2cf74275a83bacd2e9b18 /util | |
parent | 91195ae7f637d1d4879cc3bf0860147333846e75 (diff) | |
download | gem5-c4cc3145cd1eeed236b5cd3f7b2424bc0761878e.tar.xz |
arch-arm,cpu: Add initial support for Arm SVE
This changeset adds initial support for the Arm Scalable Vector Extension
(SVE) by implementing:
- support for most data-processing instructions (no loads/stores yet);
- basic system-level support.
Additional authors:
- Javier Setoain <javier.setoain@arm.com>
- Gabor Dozsa <gabor.dozsa@arm.com>
- Giacomo Travaglini <giacomo.travaglini@arm.com>
Thanks to Pau Cabre for his contribution of bugfixes.
Change-Id: I1808b5ff55b401777eeb9b99c9a1129e0d527709
Signed-off-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/13515
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cpt_upgraders/arm-sve.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/util/cpt_upgraders/arm-sve.py b/util/cpt_upgraders/arm-sve.py new file mode 100644 index 000000000..53fab7fd9 --- /dev/null +++ b/util/cpt_upgraders/arm-sve.py @@ -0,0 +1,37 @@ +def upgrader(cpt): + """ + Update the checkpoint to support initial SVE implemtation. + The updater is taking the following steps. + + 1) Set isa.haveSVE to false + 2) Set isa.sveVL to 1 + 3) Add SVE misc registers in the checkpoint + """ + if cpt.get('root','isa') == 'arm': + for sec in cpt.sections(): + import re + # Search for all ISA sections + if re.search('.*sys.*\.cpu.*\.isa$', sec): + + # haveSVE = false + cpt.set(sec, 'haveSVE', 'false') + + # sveVL (sve Vector Length in quadword) = 1 + # (This is a dummy value since haveSVE is set to false) + cpt.set(sec, 'sveVL', '1') + + # Updating SVE misc registers (dummy values) + mr = cpt.get(sec, 'miscRegs').split() + if len(mr) == 820: + print "MISCREG_SVE registers already seems to be inserted." + else: + # Replace MISCREG_FREESLOT_1 with MISCREG_ID_AA64ZFR0_EL1 + mr[-1] = 0; + + mr.append(0); # Add dummy value for MISCREG_ZCR_EL3 + mr.append(0); # Add dummy value for MISCREG_ZCR_EL2 + mr.append(0); # Add dummy value for MISCREG_ZCR_EL12 + mr.append(0); # Add dummy value for MISCREG_ZCR_EL1 + cpt.set(sec, 'miscRegs', ' '.join(str(x) for x in mr)) + +legacy_version = 15 |