Commit 37f9ba46003cf7629b1f2bc7604e8a945cd7e094

Authored by aurel32
1 parent 31a877f2

target-arm: don't use T[x] in helper

(Torbjörn Andersson)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7034 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-arm/op_helper.c
@@ -307,7 +307,7 @@ void HELPER(set_user_reg)(uint32_t regno, uint32_t val) @@ -307,7 +307,7 @@ void HELPER(set_user_reg)(uint32_t regno, uint32_t val)
307 uint32_t HELPER (add_cc)(uint32_t a, uint32_t b) 307 uint32_t HELPER (add_cc)(uint32_t a, uint32_t b)
308 { 308 {
309 uint32_t result; 309 uint32_t result;
310 - result = T0 + T1; 310 + result = a + b;
311 env->NF = env->ZF = result; 311 env->NF = env->ZF = result;
312 env->CF = result < a; 312 env->CF = result < a;
313 env->VF = (a ^ b ^ -1) & (a ^ result); 313 env->VF = (a ^ b ^ -1) & (a ^ result);