diff options
| author | Rajnesh Kanwal <rkanwal@rivosinc.com> | 2024-07-11 15:31:04 -0700 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2024-07-18 12:08:44 +1000 |
| commit | 68c05fb53036f59a55a54c943b713e8ac78fc627 (patch) | |
| tree | a0823e3007560226688625832beea03932fc5cae /scripts/qapi/common.py | |
| parent | 3cb9f20499cd7da644387a17a79230f8ffd89993 (diff) | |
| download | focaccia-qemu-68c05fb53036f59a55a54c943b713e8ac78fc627.tar.gz focaccia-qemu-68c05fb53036f59a55a54c943b713e8ac78fc627.zip | |
target/riscv: Combine set_mode and set_virt functions.
Combining riscv_cpu_set_virt_enabled() and riscv_cpu_set_mode() functions. This is to make complete mode change information available through a single function. This allows to easily differentiate between HS->VS, VS->HS and VS->VS transitions when executing state update codes. For example: One use-case which inspired this change is to update mode-specific instruction and cycle counters which requires information of both prev mode and current mode. Signed-off-by: Rajnesh Kanwal <rkanwal@rivosinc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-ID: <20240711-smcntrpmf_v7-v8-1-b7c38ae7b263@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions