mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Allow NWINDOWS selection (CPU feature with model specific defaults)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4690 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
96d1912622
commit
1a14026e11
9 changed files with 144 additions and 67 deletions
|
@ -31,7 +31,8 @@ void cpu_save(QEMUFile *f, void *opaque)
|
|||
|
||||
for(i = 0; i < 8; i++)
|
||||
qemu_put_betls(f, &env->gregs[i]);
|
||||
for(i = 0; i < NWINDOWS * 16; i++)
|
||||
qemu_put_be32s(f, &env->nwindows);
|
||||
for(i = 0; i < env->nwindows * 16; i++)
|
||||
qemu_put_betls(f, &env->regbase[i]);
|
||||
|
||||
/* FPU */
|
||||
|
@ -65,9 +66,12 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
|||
int i;
|
||||
uint32_t tmp;
|
||||
|
||||
if (version_id != 4)
|
||||
return -EINVAL;
|
||||
for(i = 0; i < 8; i++)
|
||||
qemu_get_betls(f, &env->gregs[i]);
|
||||
for(i = 0; i < NWINDOWS * 16; i++)
|
||||
qemu_get_be32s(f, &env->nwindows);
|
||||
for(i = 0; i < env->nwindows * 16; i++)
|
||||
qemu_get_betls(f, &env->regbase[i]);
|
||||
|
||||
/* FPU */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue