summaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-28 00:32:32 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-28 00:32:32 +0000
commit5461b07adc1472b569aecb1d49f8ceea354ce915 (patch)
treea6d87e5188c9951cb9e5c13b58eac28d34755fc0 /target-alpha
parente803234272aca6302dfdeaa08f81c28e7ee88606 (diff)
downloadqemu-5461b07adc1472b569aecb1d49f8ceea354ce915.tar.gz
qemu-5461b07adc1472b569aecb1d49f8ceea354ce915.tar.bz2
qemu-5461b07adc1472b569aecb1d49f8ceea354ce915.zip
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-alpha')
-rw-r--r--target-alpha/translate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index e0b7686700..a3991022e3 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2109,3 +2109,8 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model)
return env;
}
+void gen_pc_load(CPUState *env, TranslationBlock *tb,
+ unsigned long searched_pc, int pc_pos, void *puc)
+{
+ env->pc = gen_opc_pc[pc_pos];
+}