diff options
author | Ian Jiang <ianjiang.ict@gmail.com> | 2019-11-26 11:35:07 +0800 |
---|---|---|
committer | Ian Jiang <ianjiang.ict@gmail.com> | 2019-12-01 01:48:24 +0000 |
commit | 258c04fc3fc7e69d9b6885776c0184515154675e (patch) | |
tree | 98f0cb9a191f912de86ebe428831b80d61c08666 /src/dev | |
parent | bcf041f257623e5c9e77d35b7531bae59edc0423 (diff) | |
download | gem5-258c04fc3fc7e69d9b6885776c0184515154675e.tar.xz |
arch-riscv: Fix disassembling of immediate for c.lui instruction
For compressed instruction c.lui, the 6-bit immediate is left-shifted by 12
bits in decoding. While the original Gem5 gives the left-shifted value
directly in disassembly.
This patch fixes the problem by adding a new template CILuiExecute to
resume the immediate before outputting it in disassembly.
Note: The immediate is sign-extended to 20-bit to be compatible with GCC.
Change-Id: If73f72d3e8f85a8b10ce7a323379d8ad6c4c3085
Signed-off-by: Ian Jiang <ianjiang.ict@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22567
Reviewed-by: Alec Roelke <alec.roelke@gmail.com>
Maintainer: Alec Roelke <alec.roelke@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/dev')
0 files changed, 0 insertions, 0 deletions