static inline void t_gen_mov_preg_TN(DisasContext *dc, int r, TCGv tn)

{

	if (r < 0 || r > 15)

		fprintf(stderr, "wrong register write $p%d\n", r);

	if (r == PR_BZ || r == PR_WZ || r == PR_DZ)

		return;

	else if (r == PR_SRS)

		tcg_gen_andi_tl(cpu_PR[r], tn, 3);

	else {

		if (r == PR_PID) 

			tcg_gen_helper_0_1(helper_tlb_flush_pid, tn);

		if (dc->tb_flags & S_FLAG && r == PR_SPC) 

			tcg_gen_helper_0_1(helper_spc_write, tn);

		else if (r == PR_CCS)

			dc->cpustate_changed = 1;

		tcg_gen_mov_tl(cpu_PR[r], tn);

	}

}

static inline void t_gen_mov_preg_TN(DisasContext *dc, int r, TCGv tn)

{

	if (r < 0 || r > 15)

		fprintf(stderr, "wrong register write $p%d\n", r);

	if (r == PR_BZ || r == PR_WZ || r == PR_DZ)

		return;

	else if (r == PR_SRS)

		tcg_gen_andi_tl(cpu_PR[r], tn, 3);

	else {

		if (r == PR_PID) 

			tcg_gen_helper_0_1(helper_tlb_flush_pid, tn);

		if (dc->tb_flags & S_FLAG && r == PR_SPC) 

			tcg_gen_helper_0_1(helper_spc_write, tn);

		else if (r == PR_CCS)

			dc->cpustate_changed = 1;

		tcg_gen_mov_tl(cpu_PR[r], tn);

	}

}

static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv VAR_2)

{

	if (VAR_1 < 0 || VAR_1 > 15)

		fprintf(stderr, "wrong register write $p%d\n", VAR_1);

	if (VAR_1 == PR_BZ || VAR_1 == PR_WZ || VAR_1 == PR_DZ)

		return;

	else if (VAR_1 == PR_SRS)

		tcg_gen_andi_tl(cpu_PR[VAR_1], VAR_2, 3);

	else {

		if (VAR_1 == PR_PID) 

			tcg_gen_helper_0_1(helper_tlb_flush_pid, VAR_2);

		if (VAR_0->tb_flags & S_FLAG && VAR_1 == PR_SPC) 

			tcg_gen_helper_0_1(helper_spc_write, VAR_2);

		else if (VAR_1 == PR_CCS)

			VAR_0->cpustate_changed = 1;

		tcg_gen_mov_tl(cpu_PR[VAR_1], VAR_2);

	}

}

static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv VAR_2)
{ if (VAR_1 < 0 || VAR_1 > 15)
fprintf(stderr, "wrong register write $p%d\n", VAR_1); if (VAR_1 == PR_BZ || VAR_1 == PR_WZ || VAR_1 == PR_DZ)
return; else if (VAR_1 == PR_SRS)
tcg_gen_andi_tl(cpu_PR[VAR_1], VAR_2, 3); else { if (VAR_1 == PR_PID)
tcg_gen_helper_0_1(helper_tlb_flush_pid, VAR_2); if (VAR_0->tb_flags & S_FLAG && VAR_1 == PR_SPC)
tcg_gen_helper_0_1(helper_spc_write, VAR_2); else if (VAR_1 == PR_CCS)
VAR_0->cpustate_changed = 1; tcg_gen_mov_tl(cpu_PR[VAR_1], VAR_2); } }