From 741dc13597ac064e6a48bb2a6ec069cbc1cd0dbb Mon Sep 17 00:00:00 2001 From: Bhanu Chetlapalli Date: Tue, 8 May 2012 17:16:03 -0700 Subject: [MIPS] Add Goldfish target support Basic Goldfish support for MIPS. Also, Fix host CPU consumption when guest is idle When the CPU is in wait state, do not wake-up if an interrupt can't be taken. This avoid host CPU running at 100% if a device (e.g. timer) has an interrupt line left enabled. Also factorize code to check if interrupts are enabled in cpu_mips_hw_interrupts_pending(). CPU consumption based on a patch from Edgar E. Iglesias Change-Id: Ie8371c8d0c9af1e0c8ba4cac419979350de0f5d9 Signed-off-by: yajin Signed-off-by: Douglas Leung Signed-off-by: Bhanu Chetlapalli Signed-off-by: Chris Dearman --- softmmu_outside_jit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'softmmu_outside_jit.h') diff --git a/softmmu_outside_jit.h b/softmmu_outside_jit.h index 07ba4c7..21ead05 100644 --- a/softmmu_outside_jit.h +++ b/softmmu_outside_jit.h @@ -49,7 +49,11 @@ void REGPARM __stq_outside_jit(target_ulong addr, uint64_t val, int mmu_idx); // ============================================================================= // Generate ld/stx_user // ============================================================================= +#if defined(TARGET_MIPS) +#define MEMSUFFIX MMU_MODE2_SUFFIX +#else #define MEMSUFFIX MMU_MODE1_SUFFIX +#endif #define ACCESS_TYPE 1 #define DATA_SIZE 1 -- cgit v1.1