diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-06 12:40:55 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-04 23:00:41 +0200 |
commit | 0347d689f7339ec925f3a2dcb2c3bcad4d6ef315 (patch) | |
tree | 7d745d1e4af78f817dba3aca8fb36d0f59bde74d /target-lm32/helper.c | |
parent | 351d56662175bd00473326b0460516c94a427876 (diff) |
target-lm32: Let cpu_lm32_init() return LM32CPU
Make the include paths for cpu-qom.h consistent to allow using LM32CPU
in cpu.h.
Turn cpu_init macro into a static inline function returning CPULM32State
for backwards compatibility.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'target-lm32/helper.c')
-rw-r--r-- | target-lm32/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-lm32/helper.c b/target-lm32/helper.c index d0bc1931d8..3b1cee711e 100644 --- a/target-lm32/helper.c +++ b/target-lm32/helper.c @@ -192,7 +192,7 @@ static uint32_t cfg_by_def(const LM32Def *def) return cfg; } -CPULM32State *cpu_lm32_init(const char *cpu_model) +LM32CPU *cpu_lm32_init(const char *cpu_model) { LM32CPU *cpu; CPULM32State *env; @@ -219,7 +219,7 @@ CPULM32State *cpu_lm32_init(const char *cpu_model) lm32_translate_init(); } - return env; + return cpu; } /* Some soc ignores the MSB on the address bus. Thus creating a shadow memory |