diff options
author | Alexander Graf <agraf@suse.de> | 2011-04-15 17:32:47 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-18 20:51:55 +0200 |
commit | bcec36eaa0f8570d455214512f1d6382410c509e (patch) | |
tree | 724f5638df9e29dc2250e9493b482054496d997e /target-s390x/translate.c | |
parent | 7b59220ef31a9c8758f8de16e6aaf3fc14b6540c (diff) | |
download | qemu-bcec36eaa0f8570d455214512f1d6382410c509e.zip qemu-bcec36eaa0f8570d455214512f1d6382410c509e.tar.gz qemu-bcec36eaa0f8570d455214512f1d6382410c509e.tar.bz2 |
s390x: Prepare cpu.h for emulation
We need to add some more logic to the CPU description to leverage emulation
of an s390x CPU. This patch adds all the required helpers, fields in CPUState
and constant definitions required for user and system emulation.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-s390x/translate.c')
-rw-r--r-- | target-s390x/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c index d33bfb1..2cb893f 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -36,7 +36,7 @@ void cpu_dump_state(CPUState *env, FILE *f, fprintf_function cpu_fprintf, } } for (i = 0; i < 16; i++) { - cpu_fprintf(f, "F%02d=%016lx", i, (long)env->fregs[i].i); + cpu_fprintf(f, "F%02d=%016" PRIx64, i, *(uint64_t *)&env->fregs[i]); if ((i % 4) == 3) { cpu_fprintf(f, "\n"); } else { |