diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-06 17:18:12 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-16 14:50:59 +0100 |
commit | 6ae064fc671f1c475b1371c067fa3100ec6daf80 (patch) | |
tree | c59c99d795dbe712de6a9e5cdb4f1b00079bf699 /target-cris/cpu-qom.h | |
parent | cb3fb38e91caacfcb0f86e8c587ed74ffa34fe8e (diff) |
target-cris: Introduce CRISCPU subclasses
Use class_init functions to initialize the VR in preparation for
overriding v32+ behavior there.
Move cpu_cris_init() to cpu.c and hook up a class_by_name callback.
This change leads to unknown -cpu model names no longer falling back
to a CPU with VR 32 but instead returning NULL.
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-cris/cpu-qom.h')
-rw-r--r-- | target-cris/cpu-qom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-cris/cpu-qom.h b/target-cris/cpu-qom.h index 7ad8398760..2bac71fd81 100644 --- a/target-cris/cpu-qom.h +++ b/target-cris/cpu-qom.h @@ -35,6 +35,7 @@ * CRISCPUClass: * @parent_realize: The parent class' realize handler. * @parent_reset: The parent class' reset handler. + * @vr: Version Register value. * * A CRIS CPU model. */ @@ -45,6 +46,8 @@ typedef struct CRISCPUClass { DeviceRealize parent_realize; void (*parent_reset)(CPUState *cpu); + + uint32_t vr; } CRISCPUClass; /** |