void cpu_dump_state (CPUCRISState *env, FILE *f, fprintf_function cpu_fprintf,

                     int flags)

{

	int i;

	uint32_t srs;



	if (!env || !f)

		return;



	cpu_fprintf(f, "PC=%x CCS=%x btaken=%d btarget=%x\n"

		    "cc_op=%d cc_src=%d cc_dest=%d cc_result=%x cc_mask=%x\n",

		    env->pc, env->pregs[PR_CCS], env->btaken, env->btarget,

		    env->cc_op,

		    env->cc_src, env->cc_dest, env->cc_result, env->cc_mask);





	for (i = 0; i < 16; i++) {

		cpu_fprintf(f, "%s=%8.8x ",regnames[i], env->regs[i]);

		if ((i + 1) % 4 == 0)

			cpu_fprintf(f, "\n");

	}

	cpu_fprintf(f, "\nspecial regs:\n");

	for (i = 0; i < 16; i++) {

		cpu_fprintf(f, "%s=%8.8x ", pregnames[i], env->pregs[i]);

		if ((i + 1) % 4 == 0)

			cpu_fprintf(f, "\n");

	}

	srs = env->pregs[PR_SRS];

	cpu_fprintf(f, "\nsupport function regs bank %x:\n", srs);

	if (srs < 256) {

		for (i = 0; i < 16; i++) {

			cpu_fprintf(f, "s%2.2d=%8.8x ",

				    i, env->sregs[srs][i]);

			if ((i + 1) % 4 == 0)

				cpu_fprintf(f, "\n");

		}

	}

	cpu_fprintf(f, "\n\n");



}

void cpu_dump_state (CPUCRISState *env, FILE *f, fprintf_function cpu_fprintf,

                     int flags)

{

	int i;

	uint32_t srs;



	if (!env || !f)

		return;



	cpu_fprintf(f, "PC=%x CCS=%x btaken=%d btarget=%x\n"

		    "cc_op=%d cc_src=%d cc_dest=%d cc_result=%x cc_mask=%x\n",

		    env->pc, env->pregs[PR_CCS], env->btaken, env->btarget,

		    env->cc_op,

		    env->cc_src, env->cc_dest, env->cc_result, env->cc_mask);





	for (i = 0; i < 16; i++) {

		cpu_fprintf(f, "%s=%8.8x ",regnames[i], env->regs[i]);

		if ((i + 1) % 4 == 0)

			cpu_fprintf(f, "\n");

	}

	cpu_fprintf(f, "\nspecial regs:\n");

	for (i = 0; i < 16; i++) {

		cpu_fprintf(f, "%s=%8.8x ", pregnames[i], env->pregs[i]);

		if ((i + 1) % 4 == 0)

			cpu_fprintf(f, "\n");

	}

	srs = env->pregs[PR_SRS];

	cpu_fprintf(f, "\nsupport function regs bank %x:\n", srs);

	if (srs < 256) {

		for (i = 0; i < 16; i++) {

			cpu_fprintf(f, "s%2.2d=%8.8x ",

				    i, env->sregs[srs][i]);

			if ((i + 1) % 4 == 0)

				cpu_fprintf(f, "\n");

		}

	}

	cpu_fprintf(f, "\n\n");



}

	if (srs < 256) {
void FUNC_0 (CPUCRISState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,

                     int VAR_3)

{

	int VAR_4;

	uint32_t srs;



	if (!VAR_0 || !VAR_1)

		return;



	VAR_2(VAR_1, "PC=%x CCS=%x btaken=%d btarget=%x\n"

		    "cc_op=%d cc_src=%d cc_dest=%d cc_result=%x cc_mask=%x\n",

		    VAR_0->pc, VAR_0->pregs[PR_CCS], VAR_0->btaken, VAR_0->btarget,

		    VAR_0->cc_op,

		    VAR_0->cc_src, VAR_0->cc_dest, VAR_0->cc_result, VAR_0->cc_mask);





	for (VAR_4 = 0; VAR_4 < 16; VAR_4++) {

		VAR_2(VAR_1, "%s=%8.8x ",regnames[VAR_4], VAR_0->regs[VAR_4]);

		if ((VAR_4 + 1) % 4 == 0)

			VAR_2(VAR_1, "\n");

	}

	VAR_2(VAR_1, "\nspecial regs:\n");

	for (VAR_4 = 0; VAR_4 < 16; VAR_4++) {

		VAR_2(VAR_1, "%s=%8.8x ", pregnames[VAR_4], VAR_0->pregs[VAR_4]);

		if ((VAR_4 + 1) % 4 == 0)

			VAR_2(VAR_1, "\n");

	}

	srs = VAR_0->pregs[PR_SRS];

	VAR_2(VAR_1, "\nsupport function regs bank %x:\n", srs);

	if (srs < 256) {

		for (VAR_4 = 0; VAR_4 < 16; VAR_4++) {

			VAR_2(VAR_1, "s%2.2d=%8.8x ",

				    VAR_4, VAR_0->sregs[srs][VAR_4]);

			if ((VAR_4 + 1) % 4 == 0)

				VAR_2(VAR_1, "\n");

		}

	}

	VAR_2(VAR_1, "\n\n");



}

void FUNC_0 (CPUCRISState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,
int VAR_3)
{ int VAR_4; uint32_t srs; if (!VAR_0 || !VAR_1)
return; VAR_2(VAR_1, "PC=%x CCS=%x btaken=%d btarget=%x\n"
"cc_op=%d cc_src=%d cc_dest=%d cc_result=%x cc_mask=%x\n",
VAR_0->pc, VAR_0->pregs[PR_CCS], VAR_0->btaken, VAR_0->btarget,
VAR_0->cc_op,
VAR_0->cc_src, VAR_0->cc_dest, VAR_0->cc_result, VAR_0->cc_mask); for (VAR_4 = 0; VAR_4 < 16; VAR_4++) { VAR_2(VAR_1, "%s=%8.8x ",regnames[VAR_4], VAR_0->regs[VAR_4]); if ((VAR_4 + 1) % 4 == 0)
VAR_2(VAR_1, "\n"); } VAR_2(VAR_1, "\nspecial regs:\n"); for (VAR_4 = 0; VAR_4 < 16; VAR_4++) { VAR_2(VAR_1, "%s=%8.8x ", pregnames[VAR_4], VAR_0->pregs[VAR_4]); if ((VAR_4 + 1) % 4 == 0)
VAR_2(VAR_1, "\n"); } srs = VAR_0->pregs[PR_SRS]; VAR_2(VAR_1, "\nsupport function regs bank %x:\n", srs); if (srs < 256) { for (VAR_4 = 0; VAR_4 < 16; VAR_4++) { VAR_2(VAR_1, "s%2.2d=%8.8x ",
VAR_4, VAR_0->sregs[srs][VAR_4]); if ((VAR_4 + 1) % 4 == 0)
VAR_2(VAR_1, "\n"); } } VAR_2(VAR_1, "\n\n"); }