Lines Matching full:ea

2461 static void save_context_upper(CPUTriCoreState *env, target_ulong ea)  in save_context_upper()  argument
2463 cpu_stl_data(env, ea, env->PCXI); in save_context_upper()
2464 cpu_stl_data(env, ea+4, psw_read(env)); in save_context_upper()
2465 cpu_stl_data(env, ea+8, env->gpr_a[10]); in save_context_upper()
2466 cpu_stl_data(env, ea+12, env->gpr_a[11]); in save_context_upper()
2467 cpu_stl_data(env, ea+16, env->gpr_d[8]); in save_context_upper()
2468 cpu_stl_data(env, ea+20, env->gpr_d[9]); in save_context_upper()
2469 cpu_stl_data(env, ea+24, env->gpr_d[10]); in save_context_upper()
2470 cpu_stl_data(env, ea+28, env->gpr_d[11]); in save_context_upper()
2471 cpu_stl_data(env, ea+32, env->gpr_a[12]); in save_context_upper()
2472 cpu_stl_data(env, ea+36, env->gpr_a[13]); in save_context_upper()
2473 cpu_stl_data(env, ea+40, env->gpr_a[14]); in save_context_upper()
2474 cpu_stl_data(env, ea+44, env->gpr_a[15]); in save_context_upper()
2475 cpu_stl_data(env, ea+48, env->gpr_d[12]); in save_context_upper()
2476 cpu_stl_data(env, ea+52, env->gpr_d[13]); in save_context_upper()
2477 cpu_stl_data(env, ea+56, env->gpr_d[14]); in save_context_upper()
2478 cpu_stl_data(env, ea+60, env->gpr_d[15]); in save_context_upper()
2481 static void save_context_lower(CPUTriCoreState *env, target_ulong ea) in save_context_lower() argument
2483 cpu_stl_data(env, ea, env->PCXI); in save_context_lower()
2484 cpu_stl_data(env, ea+4, env->gpr_a[11]); in save_context_lower()
2485 cpu_stl_data(env, ea+8, env->gpr_a[2]); in save_context_lower()
2486 cpu_stl_data(env, ea+12, env->gpr_a[3]); in save_context_lower()
2487 cpu_stl_data(env, ea+16, env->gpr_d[0]); in save_context_lower()
2488 cpu_stl_data(env, ea+20, env->gpr_d[1]); in save_context_lower()
2489 cpu_stl_data(env, ea+24, env->gpr_d[2]); in save_context_lower()
2490 cpu_stl_data(env, ea+28, env->gpr_d[3]); in save_context_lower()
2491 cpu_stl_data(env, ea+32, env->gpr_a[4]); in save_context_lower()
2492 cpu_stl_data(env, ea+36, env->gpr_a[5]); in save_context_lower()
2493 cpu_stl_data(env, ea+40, env->gpr_a[6]); in save_context_lower()
2494 cpu_stl_data(env, ea+44, env->gpr_a[7]); in save_context_lower()
2495 cpu_stl_data(env, ea+48, env->gpr_d[4]); in save_context_lower()
2496 cpu_stl_data(env, ea+52, env->gpr_d[5]); in save_context_lower()
2497 cpu_stl_data(env, ea+56, env->gpr_d[6]); in save_context_lower()
2498 cpu_stl_data(env, ea+60, env->gpr_d[7]); in save_context_lower()
2501 static void restore_context_upper(CPUTriCoreState *env, target_ulong ea, in restore_context_upper() argument
2504 *new_PCXI = cpu_ldl_data(env, ea); in restore_context_upper()
2505 *new_PSW = cpu_ldl_data(env, ea+4); in restore_context_upper()
2506 env->gpr_a[10] = cpu_ldl_data(env, ea+8); in restore_context_upper()
2507 env->gpr_a[11] = cpu_ldl_data(env, ea+12); in restore_context_upper()
2508 env->gpr_d[8] = cpu_ldl_data(env, ea+16); in restore_context_upper()
2509 env->gpr_d[9] = cpu_ldl_data(env, ea+20); in restore_context_upper()
2510 env->gpr_d[10] = cpu_ldl_data(env, ea+24); in restore_context_upper()
2511 env->gpr_d[11] = cpu_ldl_data(env, ea+28); in restore_context_upper()
2512 env->gpr_a[12] = cpu_ldl_data(env, ea+32); in restore_context_upper()
2513 env->gpr_a[13] = cpu_ldl_data(env, ea+36); in restore_context_upper()
2514 env->gpr_a[14] = cpu_ldl_data(env, ea+40); in restore_context_upper()
2515 env->gpr_a[15] = cpu_ldl_data(env, ea+44); in restore_context_upper()
2516 env->gpr_d[12] = cpu_ldl_data(env, ea+48); in restore_context_upper()
2517 env->gpr_d[13] = cpu_ldl_data(env, ea+52); in restore_context_upper()
2518 env->gpr_d[14] = cpu_ldl_data(env, ea+56); in restore_context_upper()
2519 env->gpr_d[15] = cpu_ldl_data(env, ea+60); in restore_context_upper()
2522 static void restore_context_lower(CPUTriCoreState *env, target_ulong ea, in restore_context_lower() argument
2525 *pcxi = cpu_ldl_data(env, ea); in restore_context_lower()
2526 *ra = cpu_ldl_data(env, ea+4); in restore_context_lower()
2527 env->gpr_a[2] = cpu_ldl_data(env, ea+8); in restore_context_lower()
2528 env->gpr_a[3] = cpu_ldl_data(env, ea+12); in restore_context_lower()
2529 env->gpr_d[0] = cpu_ldl_data(env, ea+16); in restore_context_lower()
2530 env->gpr_d[1] = cpu_ldl_data(env, ea+20); in restore_context_lower()
2531 env->gpr_d[2] = cpu_ldl_data(env, ea+24); in restore_context_lower()
2532 env->gpr_d[3] = cpu_ldl_data(env, ea+28); in restore_context_lower()
2533 env->gpr_a[4] = cpu_ldl_data(env, ea+32); in restore_context_lower()
2534 env->gpr_a[5] = cpu_ldl_data(env, ea+36); in restore_context_lower()
2535 env->gpr_a[6] = cpu_ldl_data(env, ea+40); in restore_context_lower()
2536 env->gpr_a[7] = cpu_ldl_data(env, ea+44); in restore_context_lower()
2537 env->gpr_d[4] = cpu_ldl_data(env, ea+48); in restore_context_lower()
2538 env->gpr_d[5] = cpu_ldl_data(env, ea+52); in restore_context_lower()
2539 env->gpr_d[6] = cpu_ldl_data(env, ea+56); in restore_context_lower()
2540 env->gpr_d[7] = cpu_ldl_data(env, ea+60); in restore_context_lower()
2546 target_ulong ea; in helper_call() local
2574 /* EA = {FCX.FCXS, 6'b0, FCX.FCXO, 6'b0}; */ in helper_call()
2575 ea = ((env->FCX & MASK_FCX_FCXS) << 12) + in helper_call()
2577 /* new_FCX = M(EA, word); */ in helper_call()
2578 new_FCX = cpu_ldl_data(env, ea); in helper_call()
2579 /* M(EA, 16 * word) = {PCXI, PSW, A[10], A[11], D[8], D[9], D[10], D[11], in helper_call()
2582 save_context_upper(env, ea); in helper_call()
2608 target_ulong ea; in helper_ret() local
2637 /* EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0}; */ in helper_ret()
2638 ea = (pcxi_get_pcxs(env) << 28) | in helper_ret()
2641 A[13], A[14], A[15], D[12], D[13], D[14], D[15]} = M(EA, 16 * word); */ in helper_ret()
2642 restore_context_upper(env, ea, &new_PCXI, &new_PSW); in helper_ret()
2643 /* M(EA, word) = FCX; */ in helper_ret()
2644 cpu_stl_data(env, ea, env->FCX); in helper_ret()
2662 target_ulong ea; in helper_bisr() local
2671 ea = ((env->FCX & 0xf0000) << 12) + ((env->FCX & 0xffff) << 6); in helper_bisr()
2673 /* new_FCX = M(EA, word); */ in helper_bisr()
2674 new_FCX = cpu_ldl_data(env, ea); in helper_bisr()
2675 /* M(EA, 16 * word) = {PCXI, A[11], A[2], A[3], D[0], D[1], D[2], D[3], A[4] in helper_bisr()
2677 save_context_lower(env, ea); in helper_bisr()
2705 target_ulong ea; in helper_rfe() local
2730 /*EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0};*/ in helper_rfe()
2731 ea = (pcxi_get_pcxs(env) << 28) | in helper_rfe()
2735 A[13], A[14], A[15], D[12], D[13], D[14], D[15]} = M(EA, 16 * word); */ in helper_rfe()
2736 restore_context_upper(env, ea, &new_PCXI, &new_PSW); in helper_rfe()
2737 /* M(EA, word) = FCX;*/ in helper_rfe()
2738 cpu_stl_data(env, ea, env->FCX); in helper_rfe()
2766 void helper_ldlcx(CPUTriCoreState *env, target_ulong ea) in helper_ldlcx() argument
2770 restore_context_lower(env, ea, &dummy, &dummy); in helper_ldlcx()
2773 void helper_lducx(CPUTriCoreState *env, target_ulong ea) in helper_lducx() argument
2777 restore_context_upper(env, ea, &dummy, &dummy); in helper_lducx()
2780 void helper_stlcx(CPUTriCoreState *env, target_ulong ea) in helper_stlcx() argument
2782 save_context_lower(env, ea); in helper_stlcx()
2785 void helper_stucx(CPUTriCoreState *env, target_ulong ea) in helper_stucx() argument
2787 save_context_upper(env, ea); in helper_stucx()
2793 target_ulong ea; in helper_svlcx() local
2802 /* EA = {FCX.FCXS, 6'b0, FCX.FCXO, 6'b0}; */ in helper_svlcx()
2803 ea = ((env->FCX & MASK_FCX_FCXS) << 12) + in helper_svlcx()
2805 /* new_FCX = M(EA, word); */ in helper_svlcx()
2806 new_FCX = cpu_ldl_data(env, ea); in helper_svlcx()
2807 /* M(EA, 16 * word) = {PCXI, PSW, A[10], A[11], D[8], D[9], D[10], D[11], in helper_svlcx()
2810 save_context_lower(env, ea); in helper_svlcx()
2836 target_ulong ea; in helper_svucx() local
2845 /* EA = {FCX.FCXS, 6'b0, FCX.FCXO, 6'b0}; */ in helper_svucx()
2846 ea = ((env->FCX & MASK_FCX_FCXS) << 12) + in helper_svucx()
2848 /* new_FCX = M(EA, word); */ in helper_svucx()
2849 new_FCX = cpu_ldl_data(env, ea); in helper_svucx()
2850 /* M(EA, 16 * word) = {PCXI, PSW, A[10], A[11], D[8], D[9], D[10], D[11], in helper_svucx()
2853 save_context_upper(env, ea); in helper_svucx()
2878 target_ulong ea; in helper_rslcx() local
2890 /* EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0}; */ in helper_rslcx()
2891 /* EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0}; */ in helper_rslcx()
2892 ea = (pcxi_get_pcxs(env) << 28) | in helper_rslcx()
2896 A[13], A[14], A[15], D[12], D[13], D[14], D[15]} = M(EA, 16 * word); */ in helper_rslcx()
2897 restore_context_lower(env, ea, &env->gpr_a[11], &new_PCXI); in helper_rslcx()
2898 /* M(EA, word) = FCX; */ in helper_rslcx()
2899 cpu_stl_data(env, ea, env->FCX); in helper_rslcx()
2900 /* M(EA, word) = FCX; */ in helper_rslcx()
2901 cpu_stl_data(env, ea, env->FCX); in helper_rslcx()