Revision 786c02f1 target-cris/op_helper.c
b/target-cris/op_helper.c | ||
---|---|---|
21 | 21 |
|
22 | 22 |
#include <assert.h> |
23 | 23 |
#include "exec.h" |
24 |
#include "mmu.h" |
|
24 | 25 |
|
25 | 26 |
#define MMUSUFFIX _mmu |
26 | 27 |
#ifdef __s390__ |
... | ... | |
41 | 42 |
#define SHIFT 3 |
42 | 43 |
#include "softmmu_template.h" |
43 | 44 |
|
45 |
#define D(x) |
|
46 |
|
|
44 | 47 |
/* Try to fill the TLB and return an exception if error. If retaddr is |
45 | 48 |
NULL, it means that the function was called in C code (i.e. not |
46 | 49 |
from generated code or from helper.c) */ |
... | ... | |
73 | 76 |
env = saved_env; |
74 | 77 |
} |
75 | 78 |
|
79 |
void helper_tlb_update(uint32_t T0) |
|
80 |
{ |
|
81 |
#if !defined(CONFIG_USER_ONLY) |
|
82 |
uint32_t vaddr; |
|
83 |
|
|
84 |
vaddr = cris_mmu_tlb_latest_update(env, T0); |
|
85 |
D(printf("flush vaddr %x\n", vaddr)); |
|
86 |
tlb_flush_page(env, vaddr); |
|
87 |
#endif |
|
88 |
} |
|
89 |
|
|
76 | 90 |
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, |
77 | 91 |
int is_asi) |
78 | 92 |
{ |
79 |
|
|
93 |
D(printf("%s addr=%x w=%d ex=%d asi=%d\n", |
|
94 |
__func__, addr, is_write, is_exec, is_asi)); |
|
80 | 95 |
} |
Also available in: Unified diff