Skip to content

Commit

Permalink
remove unused stuff from */exec.h
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
bonzini authored and blueswirl committed Jul 3, 2010
1 parent 8713f8f commit 83dae09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
2 changes: 0 additions & 2 deletions target-alpha/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

register struct CPUAlphaState *env asm(AREG0);

#define PARAM(n) ((uint64_t)PARAM##n)
#define SPARAM(n) ((int32_t)PARAM##n)
#define FP_STATUS (env->fp_status)

#include "cpu.h"
Expand Down
3 changes: 0 additions & 3 deletions target-cris/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ register struct CPUCRISState *env asm(AREG0);
#include "softmmu_exec.h"
#endif

void cpu_cris_flush_flags(CPUCRISState *env, int cc_op);
void helper_movec(CPUCRISState *env, int reg, uint32_t val);

static inline int cpu_has_work(CPUState *env)
{
return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
Expand Down
2 changes: 1 addition & 1 deletion target-i386/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#define CPU_NO_GLOBAL_REGS

#include "exec.h"
#include "exec-all.h"
#include "host-utils.h"
Expand Down
2 changes: 0 additions & 2 deletions target-microblaze/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ register struct CPUMBState *env asm(AREG0);
#include "softmmu_exec.h"
#endif

void cpu_mb_flush_flags(CPUMBState *env, int cc_op);

static inline int cpu_has_work(CPUState *env)
{
return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI));
Expand Down
8 changes: 0 additions & 8 deletions target-mips/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ register struct CPUMIPSState *env asm(AREG0);
#include "softmmu_exec.h"
#endif /* !defined(CONFIG_USER_ONLY) */

void dump_fpu(CPUState *env);
void fpu_dump_state(CPUState *env, FILE *f,
int (*fpu_fprintf)(FILE *f, const char *fmt, ...),
int flags);

void cpu_mips_clock_init (CPUState *env);
void cpu_mips_tlb_flush (CPUState *env, int flush_global);

static inline int cpu_has_work(CPUState *env)
{
return (env->interrupt_request &
Expand Down
7 changes: 6 additions & 1 deletion target-mips/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
#include "host-utils.h"

#include "helper.h"

#ifndef CONFIG_USER_ONLY
static inline void cpu_mips_tlb_flush (CPUState *env, int flush_global);
#endif

/*****************************************************************************/
/* Exceptions processing helpers */

Expand Down Expand Up @@ -1635,7 +1640,7 @@ target_ulong helper_yield(target_ulong arg1)

#ifndef CONFIG_USER_ONLY
/* TLB management */
void cpu_mips_tlb_flush (CPUState *env, int flush_global)
static void cpu_mips_tlb_flush (CPUState *env, int flush_global)
{
/* Flush qemu's TLB and discard all shadowed entries. */
tlb_flush (env, flush_global);
Expand Down

0 comments on commit 83dae09

Please sign in to comment.