tmp_mips_head.cc Source File
Back to the index.
src
cpus
tmp_mips_head.cc
Go to the documentation of this file.
1
2
/* AUTOMATICALLY GENERATED! Do not edit. */
3
4
#include <assert.h>
5
#include "
debugger.h
"
6
#define DYNTRANS_MAX_VPH_TLB_ENTRIES MIPS_MAX_VPH_TLB_ENTRIES
7
#define DYNTRANS_ARCH mips
8
#define DYNTRANS_MIPS
9
#ifndef DYNTRANS_32
10
#define DYNTRANS_L2N MIPS_L2N
11
#define DYNTRANS_L3N MIPS_L3N
12
#if !defined(MIPS_L2N) || !defined(MIPS_L3N)
13
#error arch_L2N, and arch_L3N must be defined for this arch!
14
#endif
15
#define DYNTRANS_L2_64_TABLE mips_l2_64_table
16
#define DYNTRANS_L3_64_TABLE mips_l3_64_table
17
#endif
18
#ifndef DYNTRANS_PAGESIZE
19
#define DYNTRANS_PAGESIZE 4096
20
#endif
21
#define DYNTRANS_IC mips_instr_call
22
#define DYNTRANS_IC_ENTRIES_PER_PAGE MIPS_IC_ENTRIES_PER_PAGE
23
#define DYNTRANS_INSTR_ALIGNMENT_SHIFT MIPS_INSTR_ALIGNMENT_SHIFT
24
#define DYNTRANS_TC_PHYSPAGE mips_tc_physpage
25
#define DYNTRANS_INVALIDATE_TLB_ENTRY mips_invalidate_tlb_entry
26
#define DYNTRANS_ADDR_TO_PAGENR MIPS_ADDR_TO_PAGENR
27
#define DYNTRANS_PC_TO_IC_ENTRY MIPS_PC_TO_IC_ENTRY
28
#define DYNTRANS_TC_ALLOCATE mips_tc_allocate_default_page
29
#define DYNTRANS_TC_PHYSPAGE mips_tc_physpage
30
#define DYNTRANS_PC_TO_POINTERS mips_pc_to_pointers
31
#define DYNTRANS_PC_TO_POINTERS_GENERIC mips_pc_to_pointers_generic
32
#define COMBINE_INSTRUCTIONS mips_combine_instructions
33
#define DISASSEMBLE mips_cpu_disassemble_instr
34
35
extern
volatile
int
single_step
,
single_step_breakpoint
;
36
extern
int
debugger_n_steps_left_before_interaction
;
37
extern
int
old_show_trace_tree
;
38
extern
int
old_instruction_trace
;
39
extern
int
old_quiet_mode
;
40
extern
int
quiet_mode
;
41
42
/* instr uses the same names as in cpu_mips_instr.c */
43
#define instr(n) mips_instr_ ## n
44
45
#ifdef DYNTRANS_DUALMODE_32
46
#define instr32(n) mips32_instr_ ## n
47
48
#endif
49
50
51
#define X(n) void mips_instr_ ## n(struct cpu *cpu, \
52
struct mips_instr_call *ic)
53
54
/*
55
* nothing: Do nothing.
56
*
57
* The difference between this function and a "nop" instruction is that
58
* this function does not increase the program counter. It is used to "get out" of running in translated
59
* mode.
60
*/
61
X
(nothing)
62
{
63
cpu
->
cd
.
mips
.next_ic --;
64
}
65
66
static
struct
mips_instr_call nothing_call = {
instr
(nothing), {0,0,0} };
67
old_show_trace_tree
int old_show_trace_tree
Definition:
debugger.cc:77
old_instruction_trace
int old_instruction_trace
Definition:
debugger.cc:75
cpu::mips
struct mips_cpu mips
Definition:
cpu.h:446
X
#define X(n)
Definition:
tmp_mips_head.cc:51
debugger.h
single_step_breakpoint
volatile int single_step_breakpoint
Definition:
tmp_mips_head.cc:35
old_quiet_mode
int old_quiet_mode
Definition:
debugger.cc:76
cpu::cd
union cpu::@1 cd
quiet_mode
int quiet_mode
Definition:
main.cc:78
instr
#define instr(n)
Definition:
tmp_mips_head.cc:43
single_step
volatile int single_step
Definition:
debugger.cc:68
cpu
Definition:
cpu.h:326
debugger_n_steps_left_before_interaction
int debugger_n_steps_left_before_interaction
Definition:
debugger.cc:73
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18