mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
RISC-V: Update CSR and interrupt definitions
* Add user-mode CSR defininitions. * Reorder CSR definitions to match the specification. * Change H mode interrupt comment to 'reserved'. * Remove unused X_COP interrupt. * Add user-mode interrupts. * Remove erroneous until comments on machine mode interrupts. * Move together paging mode and page table bit definitions. * Move together interrupt and exception cause definitions. Signed-off-by: Michael Clark <mjc@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
+4
-2
@@ -74,8 +74,10 @@ const char * const riscv_intr_names[] = {
|
||||
"s_external",
|
||||
"h_external",
|
||||
"m_external",
|
||||
"coprocessor",
|
||||
"host"
|
||||
"reserved",
|
||||
"reserved",
|
||||
"reserved",
|
||||
"reserved"
|
||||
};
|
||||
|
||||
typedef struct RISCVCPUInfo {
|
||||
|
||||
+358
-311
File diff suppressed because it is too large
Load Diff
@@ -90,7 +90,7 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write,
|
||||
target_ulong csrno)
|
||||
{
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
uint64_t delegable_ints = MIP_SSIP | MIP_STIP | MIP_SEIP | (1 << IRQ_X_COP);
|
||||
uint64_t delegable_ints = MIP_SSIP | MIP_STIP | MIP_SEIP;
|
||||
uint64_t all_ints = delegable_ints | MIP_MSIP | MIP_MTIP;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user