mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:45:35 +00:00
target/riscv: Only support little endian guests
Backports 30f663b16f81d862256c7c71bc909d4588924d8c
This commit is contained in:
parent
12d33edea5
commit
8e3d241d2c
|
@ -843,6 +843,8 @@ static int read_hstatus(CPURISCVState *env, int csrno, target_ulong *val)
|
|||
/* We only support 64-bit VSXL */
|
||||
*val = set_field(*val, HSTATUS_VSXL, 2);
|
||||
#endif
|
||||
/* We only support little endian */
|
||||
*val = set_field(*val, HSTATUS_VSBE, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -854,6 +856,9 @@ static int write_hstatus(CPURISCVState *env, int csrno, target_ulong val)
|
|||
qemu_log_mask(LOG_UNIMP, "QEMU does not support mixed HSXLEN options.");
|
||||
}
|
||||
#endif
|
||||
if (get_field(val, HSTATUS_VSBE) != 0) {
|
||||
qemu_log_mask(LOG_UNIMP, "QEMU does not support big endian guests.");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue