[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/11] target-sparc: make do_unaligned_access static
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [PATCH 01/11] target-sparc: make do_unaligned_access static |
Date: |
Sun, 14 Oct 2012 19:58:49 +0000 |
Signed-off-by: Blue Swirl <address@hidden>
---
target-sparc/cpu.h | 3 ---
target-sparc/ldst_helper.c | 8 ++++++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 214d01d..b4eda18 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -711,9 +711,6 @@ uint64_t cpu_tick_get_count(CPUTimer *timer);
void cpu_tick_set_limit(CPUTimer *timer, uint64_t limit);
trap_state* cpu_tsptr(CPUSPARCState* env);
#endif
-void QEMU_NORETURN do_unaligned_access(CPUSPARCState *env, target_ulong addr,
- int is_write, int is_user,
- uintptr_t retaddr);
void cpu_restore_state2(CPUSPARCState *env, uintptr_t retaddr);
#define TB_FLAG_FPU_ENABLED (1 << 4)
diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c
index 2ca9a5c..795b0bd 100644
--- a/target-sparc/ldst_helper.c
+++ b/target-sparc/ldst_helper.c
@@ -65,6 +65,9 @@
#define QT1 (env->qt1)
#if !defined(CONFIG_USER_ONLY)
+static void QEMU_NORETURN do_unaligned_access(CPUSPARCState *env,
+ target_ulong addr, int is_write,
+ int is_user, uintptr_t retaddr);
#include "softmmu_exec.h"
#define MMUSUFFIX _mmu
#define ALIGNED_ONLY
@@ -2407,8 +2410,9 @@ void cpu_restore_state2(CPUSPARCState *env, uintptr_t
retaddr)
}
#if !defined(CONFIG_USER_ONLY)
-void do_unaligned_access(CPUSPARCState *env, target_ulong addr, int is_write,
- int is_user, uintptr_t retaddr)
+static void QEMU_NORETURN do_unaligned_access(CPUSPARCState *env,
+ target_ulong addr, int is_write,
+ int is_user, uintptr_t retaddr)
{
#ifdef DEBUG_UNALIGNED
printf("Unaligned access to 0x" TARGET_FMT_lx " from 0x" TARGET_FMT_lx
--
1.7.2.5
- [Qemu-devel] [PATCH 00/11] static patches, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 01/11] target-sparc: make do_unaligned_access static,
Blue Swirl <=
- [Qemu-devel] [PATCH 02/11] vl.c: add missing static, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 03/11] vnc: add missing static and remove unused functions, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 05/11] m48t59: remove unused m48t59_set_addr, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 06/11] sun4c: remove unused functions, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 08/11] ppc: add missing static and remove unused functions, Blue Swirl, 2012/10/14
- [Qemu-devel] [PATCH 09/11] target-ppc: make some functions static, Blue Swirl, 2012/10/14
- Re: [Qemu-devel] [PATCH 00/11] static patches, Blue Swirl, 2012/10/14