Commit Graph

19189 Commits

Author SHA1 Message Date
Jui-Min Lee
5399ddb40e mem: Add SharedMemoryClient
Add a client implementation corresponding to the server so people who
want to utilize the server have an example.

Change-Id: Idf1a8f5a406271bbcbe0b338e709e89b1512c8a8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61050
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-08 07:16:56 +00:00
Jui-Min Lee
b6dcae31ee mem: multi-clients support for SharedMemoryServer
Record the client session with a map instead of a single unique_ptr so
our server can interact with multiple clients at once.

This will also avoid a race condition case where the client thought it
has closed previous connection and is trying to a new one while the
server hasn't clean up the previous entry and raise a fatal error.

Change-Id: Id08154fc4b54d2611629875b3f4e0d66c0e2ed92
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61049
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-08 01:14:55 +00:00
ksco
f5d15871f3 arch-riscv: Treat InvalidRegClass as zero register.
Currently the disassembler will print the zero register as ft0, this commit provides a workaround to solve this problem.

Change-Id: Ic8ac3f277dd9ff886dc84a83c022954ad30c47f2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61150
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-08 00:09:01 +00:00
ksco
a4a2170409 arch-riscv: Use more precise mnemonics
Change-Id: I520ff63b8ca88e0dab75c03a07f17430fc160ea9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61149
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-08 00:08:43 +00:00
ksco
8fb2dfaa6a arch-riscv: Add K extension
This commit adds part of RISC-V Cryptography Extensions v1.0.1 to gem5. Include the following instructions:

Zbkx:
xperm8: Crossbar permutation (bytes)
xperm4: Crossbar permutation (nibbles)

Zknd:
aes64ds:   AES decrypt final round (RV64)
aes64dsm:  AES decrypt middle round (RV64)
aes64im:   AES Decrypt KeySchedule MixColumns (RV64)
aes64ks1i: AES Key Schedule Instruction 1 (RV64)
aes64ks2:  AES Key Schedule Instruction 2 (RV64)

Zkne:
aes64es:   AES encrypt final round instruction (RV64)
aes64esm:  AES encrypt middle round instruction (RV64)
aes64ks1i: AES Key Schedule Instruction 1 (RV64)
aes64ks2:  AES Key Schedule Instruction 2 (RV64)

Zknh:
sha256sig0: SHA2-256 Sigma0 instruction
sha256sig1: SHA2-256 Sigma1 instruction
sha256sum0: SHA2-256 Sum0 instruction
sha256sum1: SHA2-256 Sum1 instruction
sha512sig0: SHA2-512 Sigma0 instruction (RV64)
sha512sig1: SHA2-512 Sigma1 instruction (RV64)
sha512sum0: SHA2-512 Sum0 instruction (RV64)
sha512sum1: SHA2-512 Sum1 instruction (RV64)

Zksed:
sm4ed: SM4 Encrypt/Decrypt Instruction
sm4ks: SM4 Key Schedule Instruction

Zksh:
sm3p0: SM3 P0 transform
sm3p1: SM3 P1 transform

Change-Id: Ide3e6a4ce903be09dfb3e6b702c9dbcf74a35afb
Co-authored-by: Yang Liu <numbksco@gmail.com>
Co-authored-by: Fan Yang <1209202421@qq.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60949
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-08 00:08:01 +00:00
Sascha Bischoff
7b783a180d system-arm: Fix FEAT_PAuth trapping in AArch64 bootloader
Now that we start running the bootloader at EL3, we need to setup the
SCR_EL3 register so that it doesn't trap any pointer authentication
instruction.

This is fixing the booting process of Linux kernels making use of
FEAT_PAuth

Change-Id: I08aa96908dd2c16438448f3cc3c47a1271b2dfa8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61069
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
2022-07-07 16:16:45 +00:00
Bobby R. Bruce
7a22e69db3 util-docker: Re-add mypy to 20.04_all-dep Dockerfile
This was accidently removed in
https://gem5-review.googlesource.com/c/public/gem5/+/46999 due to a bad
rebase. mypy is needed by the pre-commit (Kokoro) tests.

Change-Id: Ice413e738520293ee51f0e8654d27d8fd88c103b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/61089
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
2022-07-07 09:08:26 +00:00
Earl Ou
01e99c3c7d systemc: Use debug trace for TlmBridge
Some messages in TlmBridge is too verbose
in the system with many bridges.

Change-Id: I27b30b518877731017bc980a3cd4706807c1ecfe
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60791
Maintainer: Earl Ou <shunhsingou@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Earl Ou <shunhsingou@google.com>
2022-07-07 00:55:33 +00:00
Hoa Nguyen
d337af6818 configs: Fix unconnected PCI port in SST gem5 config
PCI Host was added to the HiFive platform here,
https://gem5-review.googlesource.com/c/public/gem5/+/59969

This change connects the PCI host to the membus. However,
it will not be added to the device tree.

Change-Id: I2c1b1049597e5bfd0be467ef2a514d70bc2dd83e
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60989
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-06 19:03:03 +00:00
Richard Cooper
24daaf7828 mem-ruby: Fix file extension detection in code_formatter.py.
Insufficiently specific regular expressions were causing the C/C++
pattern to match the `.html` extension. This resulted in C-style
comments being inserted into generated HTML files.

This was causing the SLICC HTML documentation to be unreadable in a
web browser.

Change-Id: Iebad9896db393bba7ec9b0836693012959222455
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60871
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-06 17:09:46 +00:00
Richard Cooper
f9b57ee4ed mem-ruby: Allow SLICC symbols to have no description.
Updated the SLICC `Symbol` class to return an empty string when its
`desc` property is read.

The SLICC language does not require a symbol to have a `desc` for
protocol generation, but the generation of SLICC HTML documentation
expects a `desc` and will fail if it is not present.

Change-Id: I07cc0ab805520eb74f86c6ea8036abb7354b10a9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60870
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
2022-07-06 17:09:46 +00:00
Richard Cooper
b893344b7d mem-ruby: Add descriptions to the CHI DVM symbols.
This commit adds `desc` descriptions to the new symbols introduced
with CHI DVM support. The generation of the SLICC HTML documentation
requires each symbol to have a description, so a build with
`SLICC_HTML=True` will fail without this change.

Change-Id: I06f3bdd33edd1ff6e4bec35b01a460b9359ed9f6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60869
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-06 17:09:46 +00:00
Bobby R. Bruce
f8439a12be util-docker: Add Python Black to Dockerfiles
Python Black is to be used by the gem5 project to format our Python
files. More information on Python Black can be found here:
https://github.com/psf/black

Change-Id: I1e31b090a422e1c17d36c4b597bfb59efbb6833d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46999
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
2022-07-06 00:11:27 +00:00
Bobby R. Bruce
90207e150c python: Add pyroject.toml file
This is used to configure Python Black.

Change-Id: Ib19b4819ff33fd661e088fe0a035c211406bb2b8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47023
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-05 17:29:28 +00:00
Giacomo Travaglini
ccdec1b11d arch-arm: Do not trap SIMD insts to EL1 if in VHE host
Change-Id: I4ea326eead1aec1e013280b599c57f2202901625
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60971
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-05 08:45:01 +00:00
Giacomo Travaglini
343f7b7bf6 arch-arm: Do not trap MISCREG_DC_ZVA_Xt to EL1 if in VHE host
Change-Id: I785be01fcb97b78e0b59f8f9a4f8d150208fa88a
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60970
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-05 08:45:01 +00:00
Giacomo Travaglini
ea9620922c arch-arm: Revamp of AArch64 S1 access permission logic
This patch is revamping/simplifying the access permission logic in the
ArmMMU (ArmMMU::s1PermBits64) by matching more closely the Arm
architecture reference manual pseudocode.

It also fixes VHE access permission: previous version was not
considering the EL2&0 translation regime.
Now EL2&0 is handled correctly through the new hasUnprivRegime method

Change-Id: I2689738f36a35c35cc4f2ef8af68ee2a3eef65e8
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60969
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-05 08:45:01 +00:00
Yu-hsin Wang
c1b709e46d fastmodel: handling amba control signals
Change-Id: I7a62bdd4bfdb2bba4f7e186b049491b48782d7d8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/59652
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-04 02:59:58 +00:00
Yu-hsin Wang
b07af1076c systemc: add control extension conversion step
The conversion step will map the control signal in gem5 packet and TLM2
extension.

Change-Id: Ieafb3856723e198d3538a98930e235ed4efbc117
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/59651
Reviewed-by: Jui-min Lee <fcrh@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-07-04 02:59:55 +00:00
Wende Tan
527b91a0e8 configs: Fix timebase-frequency of RISC-V board
Fix the timebase-frequency in the device tree of RISC-V board to make it
consistent with RiscvRTC.

Fixes: 23afee2d9e ("configs: Add RISC-V board to components")
Change-Id: I6fdfba4393ff391185851a036d34bc6ce91eece5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60909
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-02 04:16:07 +00:00
Jarvis Jia
eb85b173dd learning-gem5: fix int_links warning
Update the Part 3 config file examples in learning gem5 to resolve a
warning with int_links.  Some files were initializing self.int_links vector
to an empty list of SimObjects.  This causes a warning.

The fix resolves this by initializing self.int_links to a pre-declared
int_links variable.

Change-Id: Iaa38a4db9cc42a949879d571d1372f0b0a456f11
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60829
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
2022-06-30 07:07:41 +00:00
Earl Ou
e54efbd8e9 mem: Use debug trace instead of warn for default backdoor
By default backdoor access fall back to atomic if not
implemented in the ResponsePort. Given this is a common
behavior for most of the IPs, having them print all the
warning creates large number of warning in a big system.

Ideally we want to make this a debug level log, but this
can only be done through the debug trace mechanism.

Change-Id: I8a4074fc58b13c1881ad62897a89774c66880ccb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60790
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
2022-06-29 12:43:11 +00:00
Earl Ou
c0ca47b6ed dev: avoid intpin to reset value at binding stage
By design SimObject should initialize its state at init() stage.
However, the original intpin design will try to reset the sink side when
binding. This could cause unexpected issue as the other side does not
init() yet.

To align with the design, the call to upper()/lower() should be left to
the initiator in the init() function instead of constructor.

Change-Id: Iec8b228715d093381a33e747849119562bd634e1
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60751
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
2022-06-29 12:42:36 +00:00
Earl Ou
3a65347e0f python: Avoid re-adding child when cloning SimObject
For SimObject type param, we should avoid duplicated addChild
call if it already belongs to other parent.

In the original implementation, the following code:

```

class A(SimObject):
  ...

class B(SimObject):
  a = Param.A(...)

class Top(RealView):
  a = A()
  b = B(a=a)
```

will generate incorrect warning:

```
warn: <orphan B>.a already has parent not resetting parent.
        Note: a is not a parameter of B
	warn: (Previously declared as <orphan Top>.a)
```

The code tries to add `a` as the child of `Top` as well as child of
`Top.b`, which is incorrect.

Change-Id: I8c55c5dd4cc0dd45c68169a2b08450ff053c07aa
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60789
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
2022-06-29 12:40:28 +00:00
Earl Ou
a3be84cb1b systemc: use warn_once for stack size operation
We have a warning in sc_spawn given that stack size setting is not supported.
However, as is a common call in SystemC, the warning generates too many
logs for users. This CL changes it to be warn_once.

Change-Id: I63c057ca99f68585303cf2b4fdddee5b713f856b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60750
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-28 00:21:46 +00:00
Earl Ou
1f32c7ac71 python: use box instead of Mrecord for dot plot
Base on https://graphviz.org/doc/info/shapes.html#record, record shape
has problems with edge between adjacent nodes on the same rank.  This will
produce message "flat edge between adjacent nodes one of which has a record
shape" and dump a huge svg file in gem5's stdout. Also, the edge will
not be plotted in the output svg.

By looking at out dot_writer, we don't really use any record specific
label. As a result, we can simply apply box as the shape to achieve the
same output without the strange error message.

Change-Id: Ibbbcbfbc29edcd64bfeb7ae10adccfb54ea2613a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60749
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
2022-06-28 00:21:20 +00:00
Giacomo Travaglini
b0eaecc77b arch-arm: Check if VectorCatch is nullptr
This is needed after [1].
Simulation starts with a call to the reset fault in the
initState stage and therefore checks for the vector catch
object. This happens before the SelfDebug object is properly
initialized.

[1]: https://gem5-review.googlesource.com/c/public/gem5/+/60730

Change-Id: Ic117413611aa30386327bbc13e5489fab32733de
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60769
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
2022-06-27 23:35:49 +00:00
Giacomo Travaglini
b9186e2e70 arch-arm: Initialize Debug using AArch64 version of the registers
Initialize Arm Self Hosted Debug using the AArch64 version of
Watchpoint registers

Change-Id: I2fc711970c7805d8de985846025b8f6de99b2682
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60731
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
2022-06-24 14:03:16 +00:00
Giacomo Travaglini
58f448743b arch-arm: Remove unnecessary self hosted debug initialization
The init method is already called by in the ISA::init, before
simulation starts, so there is no need to check for it
when a watchpoint/breakpoint is set by guest software

Change-Id: I776a1824799a7f4a351eb7d3c7002a11726f9d6a
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60730
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
2022-06-24 14:03:16 +00:00
Giacomo Travaglini
424643e91e arch-arm: Fix format specifier in encodeAArch64SysReg panic
The panic was using the wrong format specifier: %n instead of %d

Change-Id: I92f0be85dc24da06373cba5c20bab6de7d7b4537
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60729
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
2022-06-24 14:03:16 +00:00
Gabe Black
85a18e22a1 arch,cpu: Keep track of the RegClassType of a RegClass.
This makes it possible to do more things with a RegClass locally.

Change-Id: Ib7d7fa3e2d88a34d5b5681fcc4aab26696c71205
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49779
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
2022-06-24 11:27:23 +00:00
Gabe Black
4c55722ccd cpu: Stop using or providing legacy (read|set)Reg* accessors.
These have now all been replaced with (get|set)Reg* accessors throughout
the code base.

Change-Id: I7d16d697ecfb813eb870068677f77636d41af28b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49778
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-24 11:27:06 +00:00
Gabe Black
d222f4095b cpu: Merge TimingExprSrcReg and TimingExprReadIntReg.
Make it possible to read any type of reg, assuming it fits in a RegVal.
This avoids assuming building in a dependency on the readIntReg
accessor.

It also avoids setting up a situation where the API could at least
theoretically base the timing expression on the value of *any* int reg,
even ones the instruction does not interact with. The ...ReadIntReg
expression was only ever used with the result of the ...SrcReg
expression, and in my opinion, that's realy the only way it makes sense
to use it. It doesn't seem useful to split that operation into two
parts.

If it actually does make sense (although I doubt this), these operations
can't really be generalized easily since the TimingExpr... classes all
expect to pass around uint64_ts, and a RegId, the *real* value of a
SrcReg index which does not assume a register type, would not fit in
that in the general case.

Change-Id: I253a0a058dc078deeb28ef0babead4c8ffc3b792
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49776
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
2022-06-24 11:26:51 +00:00
Matt Sinclair
590719a383 arch-vega: explain when op encoder ignores src reg
Previously b40b361bee added support for the Vega operand encoder.  As
part of this, it made sure to check for the S_GETPC_B64 instruction,
which appears to be the only instruction in the Vega ISA that does not
use the source register.  However, at the time the commit used magic
numbers without comment, which can be difficult for users to interpret.

To resolve this, this commit adds a comment to explain where the magic
numbers come from (Table 58 in the Vega ISA manual).

Change-Id: Ic5007b510e0175558d21ede8eb6db273113187b2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60650
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Matthew Poremba <matthew.poremba@amd.com>
2022-06-22 17:14:35 +00:00
Matt Sinclair
00008b725c arch-vega: some Vega instructions don't use dest reg
Some of the Vega scalar instructions (S_SETPC_B64, S_RFE_B64,
S_CBRANCH_JOIN, and S_SET_GPR_IDX_IDX) do not use the SDST scalar
destination register.  However, Vega's operand encoding function for the
SOP1 instruction type's class assumed all instructions used the
destination register, which results in an assert failure for these
instructions.

To resolve this, this commit updates the Vega SOP1 operand encoder to
ignore the destination register for these specific instructions.

Change-Id: I2f0d830f6264fc7f47c0694a2fd5da5d33d2ea0b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60649
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Matthew Poremba <matthew.poremba@amd.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
2022-06-22 17:14:35 +00:00
Matt Sinclair
9c1af09605 mem-ruby, gpu-compute: update TCP,SQC to pass hit/miss
Previously, the GPU SQC and TCP Ruby protocols always told the Sequencer
that the externalHit field was false.  This impacts the statistics and
profiling, because the Sequencer uses this hit/miss information both for
profiling and the coalescer's statistics.

To resolve this, this commit updates the GPU SQC and TCP Ruby protocols
to pass the appropriate hit/miss information into the Sequencer's
readCallback and hitCallback functions.

Change-Id: Ib74af09b66fa8866eee72d3a9ab0e8a8f2196c03
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60652
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Matthew Poremba <matthew.poremba@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-21 22:59:05 +00:00
Matt Sinclair
669eb6a6fa mem-ruby, gpu-compute: add hit/miss profiling to SQC
This commit updates the Ruby SQC (GPU L1 I$) to perform hit and miss
profiling on each request that reaches it.

Change-Id: I736521b89b5d37d950265f32cf1a6d2ee5316dba
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60651
Maintainer: Matthew Poremba <matthew.poremba@amd.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-21 22:58:42 +00:00
Michael Boyer
81058189af arch-vega,arch-gcn3: Implement S_MEMTIME instruction
Change-Id: I3e286eb6ff8af4097ad03d4066be79f73d938cea
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53603
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-21 20:19:46 +00:00
Bobby R. Bruce
b31192f539 misc: Revert gem5 versioning for develop branch
Change-Id: I80cbfc766c71a3137a427d38da4f46b80cd39856
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60639
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
687d992ccf misc: Revert "scons: Remove -Werror for the gem5 v22.0 release"
This reverts commit 4df0d886df.
https://gem5-review.googlesource.com/c/public/gem5/+/60510

Change-Id: I0833b210c6dd46f77dc0ca0cc399e013efb2e7ca
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60638
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
cc3856771c misc: Revert "python,misc: Update the resources URL to v22-0"
This reverts commit 2342c74a13.
https://gem5-review.googlesource.com/c/public/gem5/+/60530

Change-Id: Ia069675dea69755ace82f2bef56ca47c4c3ab1db
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60637
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
978558defe misc: Revert "stdlib: Update the resources.json version to v22.0"
This reverts commit 73da4d794c.
https://gem5-review.googlesource.com/c/public/gem5/+/60531

Change-Id: I01c3879b1f96bd92db60195369354f542f3e829e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60636
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
cceaf46208 misc: Revert "tests: Update the the docker images in Nightly..."
This reverts commit ae3c3fccd4.
https://gem5-review.googlesource.com/c/public/gem5/+/60549

Change-Id: Ibe78616f42bbe172684af801ba75a38154a44563
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60635
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
99cfda39f8 misc: Revert "tests: Update the Weekly tests' docker version..."
This reverts commit ac7d7a7d7a.
https://gem5-review.googlesource.com/c/public/gem5/+/60550

Change-Id: Ib971a602057856204a385bd95e5ad61125167eac
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60634
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
e42ce2ccd8 misc: Revert "tests: Update Weekly tests to use correct resources..."
This reverts commit 742e661ba7.
https://gem5-review.googlesource.com/c/public/gem5/+/60551

Change-Id: I4d67abbcea2c828dafe2f591892e23af539cb118
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60633
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
03b69c04bc misc: Revert "tests: Update gem5 dist URL for weekly tests..."
This reverts commit e9beee0134.
https://gem5-review.googlesource.com/c/public/gem5/+/60552

Change-Id: I8aab020ede777459e1d0e7ae9b3baa40b10eb9d9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60632
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
b6c0e2560c misc: Revert "util-docker: Update ROCclr.patch link to v22-0..."
This reverts commit 72fdc257bd.
https://gem5-review.googlesource.com/c/public/gem5/+/60553

Change-Id: I0538dfdec571210911017b70a241ac0a2db7badb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60631
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 19:56:24 +00:00
Bobby R. Bruce
2ef82c4fa5 misc: Revert "tests: Add v22-0 tag for compiler-tests..."
This reverts commit 78bf9b1960.
https://gem5-review.googlesource.com/c/public/gem5/+/60569

Change-Id: I7d5e8e99039d27f58589197d9f908f615187ee9b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60630
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
2022-06-20 19:56:24 +00:00
Bobby Bruce
bd295a2e41 Merge "miscL Merge stable branch (v22.0.0.1) into develop" into develop 2022-06-20 19:56:24 +00:00
Gabe Black
e57205f539 arch-riscv: Revamp float regs.
Change-Id: I6bb7a4f78e59082c3f783a5d4c2cb79f9c6df61f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49773
Reviewed-by: Boris Shingarov <shingarov@labware.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-20 04:04:05 +00:00