aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/buffer.h
diff options
context:
space:
mode:
authorFrédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>2022-01-06 22:00:59 +0100
committerAlistair Francis <alistair.francis@wdc.com>2022-01-08 15:46:10 +1000
commita2f827ff4f4486b8aa8fce180452463ec2b62f53 (patch)
treeec14b88622473c5fc844fbb7f6dfca101a1d595d /include/qemu/buffer.h
parent76a361066f9a02b4dc587c0c62481f2ef8fbe524 (diff)
downloadqemu-a2f827ff4f4486b8aa8fce180452463ec2b62f53.zip
qemu-a2f827ff4f4486b8aa8fce180452463ec2b62f53.tar.gz
qemu-a2f827ff4f4486b8aa8fce180452463ec2b62f53.tar.bz2
target/riscv: accessors to registers upper part and 128-bit load/store
Get function to retrieve the 64 top bits of a register, stored in the gprh field of the cpu state. Set function that writes the 128-bit value at once. The access to the gprh field can not be protected at compile time to make sure it is accessed only in the 128-bit version of the processor because we have no way to indicate that the misa_mxl_max field is const. The 128-bit ISA adds ldu, lq and sq. We provide support for these instructions. Note that (a) we compute only 64-bit addresses to actually access memory, cowardly utilizing the existing address translation mechanism of QEMU, and (b) we assume for now little-endian memory accesses. Signed-off-by: Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr> Co-authored-by: Fabien Portas <fabien.portas@grenoble-inp.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20220106210108.138226-10-frederic.petrot@univ-grenoble-alpes.fr Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/qemu/buffer.h')
0 files changed, 0 insertions, 0 deletions