mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Factorize code in translate.c
(Glauber Costa) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4274 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
923e5e339f
commit
d2856f1ad4
11 changed files with 125 additions and 95 deletions
|
@ -2702,3 +2702,9 @@ void cpu_reset (CPUCRISState *env)
|
|||
memset(env, 0, offsetof(CPUCRISState, breakpoints));
|
||||
tlb_flush(env, 1);
|
||||
}
|
||||
|
||||
void gen_pc_load(CPUState *env, struct TranslationBlock *tb,
|
||||
unsigned long searched_pc, int pc_pos, void *puc)
|
||||
{
|
||||
env->pregs[PR_ERP] = gen_opc_pc[pc_pos];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue