Statistics
| Branch: | Revision:

root / target-i386 @ c5291a4f

Name Size
TODO 1 kB
cpu-qom.h 1.8 kB
cpu.c 51.6 kB
cpu.h 31.9 kB
helper.c 38.3 kB
helper.h 6.3 kB
helper_template.h 8.6 kB
hyperv.c 1.2 kB
hyperv.h 1.2 kB
kvm.c 57.3 kB
machine.c 14.1 kB
op_helper.c 166.6 kB
ops_sse.h 60 kB
ops_sse_header.h 11.7 kB
svm.h 5.7 kB
translate.c 256.7 kB

Latest revisions

# Date Author Comment
61dcd775 04/25/2012 11:51 am Andreas Färber

target-i386: Pass X86CPU to cpu_x86_register()

Avoids an x86_env_get_cpu() call there, to work with QOM properties.

Signed-off-by: Andreas Färber <>
Reviewed-by: Eduardo Habkost <>
Reviewed-by: Igor Mammedov <>

a88a677f 04/25/2012 11:51 am Andreas Färber

target-i386: Add range check for -cpu ,family=x

A family field value of 0xf and extended family field value of 0xff is
the maximum representable unsigned family number.
All other CPUID property values are bounds-checked, so add a check here
for symmetry before we adopt it in a property setter....

71ad61d3 04/25/2012 11:51 am Andreas Färber

target-i386: Add "family" property to X86CPU

Add the property early in the initfn so that it can be used in helpers
such as mce_init().

Signed-off-by: Andreas Färber <>
Reviewed-by: Eduardo Habkost <>
[AF: Add an error_free(), spotted by Michael Roth]...

c5291a4f 04/25/2012 11:51 am Andreas Färber

target-i386: Add "model" property to X86CPU

Signed-off-by: Andreas Färber <>
Reviewed-by: Eduardo Habkost <>
Reviewed-by: Igor Mammedov <>

d0a6acf4 04/25/2012 11:45 am Andreas Färber

target-i386: Fix x86_cpuid_set_model_id()

Don't assume zeroed cpuid_model[] fields.

This didn't break anything yet but QOM properties should be able to set
the value to something else without setting an intermediate zero string.

Reviewed-by: Eduardo Habhost <>...

20503968 04/14/2012 05:23 pm Blue Swirl

Use uintptr_t for various op related functions

Use uintptr_t instead of void * or unsigned long in
several op related functions, env->mem_io_pc and
GETPC macro.

Reviewed-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

30471bc9 04/10/2012 06:10 pm Andreas Färber

target-i386: Rename cpuid.c

Name it cpu.c to align with other QOM'ified targets.

Signed-off-by: Andreas Färber <>

5fd2087a 04/10/2012 06:10 pm Andreas Färber

target-i386: QOM'ify CPU

Embed CPUX86State as first member of X86CPU.
Distinguish between "x86_64-cpu" and "i386-cpu".
Drop cpu_x86_close() in favor of calling object_delete() directly.

For now let CPUClass::reset() call cpu_state_reset().

Signed-off-by: Andreas Färber <>

de024815 04/10/2012 06:10 pm Andreas Färber

target-i386: QOM'ify CPU init

Move code from cpu_x86_init() to new QOM x86_cpu_initfn().
Also move mce_init() to cpu.c since it's used nowhere else.

Signed-off-by: Andreas Färber <>

c1958aea 04/10/2012 06:10 pm Andreas Färber

target-i386: QOM'ify CPU reset

Move code from cpu_state_reset() into QOM x86_cpu_reset(),
fixing style issues for FPU init.

Signed-off-by: Andreas Färber <>

View revisions

Also available in: Atom