diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-28 00:32:32 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-28 00:32:32 +0000 |
commit | d2856f1ad4c259e5766847c49acbb4e390731bd4 (patch) | |
tree | a6d87e5188c9951cb9e5c13b58eac28d34755fc0 /target-cris/translate.c | |
parent | 923e5e339f16d55109a75e3f99a2c668571cc58b (diff) | |
download | qemu-d2856f1ad4c259e5766847c49acbb4e390731bd4.zip qemu-d2856f1ad4c259e5766847c49acbb4e390731bd4.tar.gz qemu-d2856f1ad4c259e5766847c49acbb4e390731bd4.tar.bz2 |
Factorize code in translate.c
(Glauber Costa)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4274 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/translate.c')
-rw-r--r-- | target-cris/translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index ff5711c..108fb7a 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -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]; +} |