diff options
author | Alexander Graf <agraf@suse.de> | 2011-04-15 17:32:48 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-18 20:51:59 +0200 |
commit | 3110e2925489c571901e945e315942ce84fe696f (patch) | |
tree | 4cc53827e60da2e5f3b1c54fb9a4c7772902b861 /target-s390x | |
parent | bcec36eaa0f8570d455214512f1d6382410c509e (diff) | |
download | qemu-3110e2925489c571901e945e315942ce84fe696f.zip qemu-3110e2925489c571901e945e315942ce84fe696f.tar.gz qemu-3110e2925489c571901e945e315942ce84fe696f.tar.bz2 |
s390x: Enable s390x-softmmu target
This patch adds some code paths for running s390x guest OSs without the
need for KVM.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-s390x')
-rw-r--r-- | target-s390x/exec.h | 11 | ||||
-rw-r--r-- | target-s390x/helper.c | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/target-s390x/exec.h b/target-s390x/exec.h index f7893f3..7a87fff 100644 --- a/target-s390x/exec.h +++ b/target-s390x/exec.h @@ -31,7 +31,16 @@ register struct CPUS390XState *env asm(AREG0); static inline int cpu_has_work(CPUState *env) { - return env->interrupt_request & CPU_INTERRUPT_HARD; // guess + return ((env->interrupt_request & CPU_INTERRUPT_HARD) && + (env->psw.mask & PSW_MASK_EXT)); +} + +static inline void regs_to_env(void) +{ +} + +static inline void env_to_regs(void) +{ } static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock* tb) diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 4a5297b..629dfd9 100644 --- a/target-s390x/helper.c +++ b/target-s390x/helper.c @@ -82,3 +82,7 @@ int cpu_s390x_handle_mmu_fault (CPUState *env, target_ulong address, int rw, return 0; } #endif /* CONFIG_USER_ONLY */ + +void do_interrupt (CPUState *env) +{ +} |