mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
target/mips: Add CP0 register MemoryMapID
Add CP0 register MemoryMapID. Only data field is added. The corresponding functionality will be added in future patches. Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
This commit is contained in:
parent
04992c8cd1
commit
3ef521ee9f
2 changed files with 4 additions and 2 deletions
|
@ -536,6 +536,7 @@ struct CPUMIPSState {
|
||||||
*/
|
*/
|
||||||
target_ulong CP0_Context;
|
target_ulong CP0_Context;
|
||||||
target_ulong CP0_KScratch[MIPS_KSCRATCH_NUM];
|
target_ulong CP0_KScratch[MIPS_KSCRATCH_NUM];
|
||||||
|
int32_t CP0_MemoryMapID;
|
||||||
/*
|
/*
|
||||||
* CP0 Register 5
|
* CP0 Register 5
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -214,8 +214,8 @@ const VMStateDescription vmstate_tlb = {
|
||||||
|
|
||||||
const VMStateDescription vmstate_mips_cpu = {
|
const VMStateDescription vmstate_mips_cpu = {
|
||||||
.name = "cpu",
|
.name = "cpu",
|
||||||
.version_id = 16,
|
.version_id = 17,
|
||||||
.minimum_version_id = 16,
|
.minimum_version_id = 17,
|
||||||
.post_load = cpu_post_load,
|
.post_load = cpu_post_load,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (VMStateField[]) {
|
||||||
/* Active TC */
|
/* Active TC */
|
||||||
|
@ -253,6 +253,7 @@ const VMStateDescription vmstate_mips_cpu = {
|
||||||
VMSTATE_UINT64(env.CP0_EntryLo0, MIPSCPU),
|
VMSTATE_UINT64(env.CP0_EntryLo0, MIPSCPU),
|
||||||
VMSTATE_UINT64(env.CP0_EntryLo1, MIPSCPU),
|
VMSTATE_UINT64(env.CP0_EntryLo1, MIPSCPU),
|
||||||
VMSTATE_UINTTL(env.CP0_Context, MIPSCPU),
|
VMSTATE_UINTTL(env.CP0_Context, MIPSCPU),
|
||||||
|
VMSTATE_INT32(env.CP0_MemoryMapID, MIPSCPU),
|
||||||
VMSTATE_INT32(env.CP0_PageMask, MIPSCPU),
|
VMSTATE_INT32(env.CP0_PageMask, MIPSCPU),
|
||||||
VMSTATE_INT32(env.CP0_PageGrain, MIPSCPU),
|
VMSTATE_INT32(env.CP0_PageGrain, MIPSCPU),
|
||||||
VMSTATE_UINTTL(env.CP0_SegCtl0, MIPSCPU),
|
VMSTATE_UINTTL(env.CP0_SegCtl0, MIPSCPU),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue