[OSy] Chybka v simulatoru...

Ondrej Palkovsky ondrap at penguin.cz
Thu Oct 21 08:47:53 CEST 2004


Tak pro ty, ktere popadne stejne blby napad jako me, a budou chtit
predelat handle_general_exception k obrazu svemu, zvlaste tak, ze si budou
ruzne hrat se status registrem, tak si aplikujte nasledujici patch na
simulator. Usetrite si par hodin hledani chyby, kterou tam nemate....
Podle dokumentace totiz:  On new exceptions, the processor does not write
to the EPC register when the EXL bit in the Status register is set.
However, the register can still be written via the MTC0 instruction.

Ondrej Palkovsky
P.S.: Kolik bodu je za nalezeni chyby v simulatoru? ;-)
-------------- next part --------------
--- ixsys.inc.old	2003-11-28 17:33:56.000000000 +0100
+++ ixsys.inc	2004-10-21 03:07:02.000000000 +0200
@@ -227,8 +227,7 @@
 			pr->cp0[ CP0_Cause] |= rrt & (cp0_cause_ip0_mask | cp0_cause_ip1_mask);
 			break;
 		case CP0_EPC:
-			if ((pr->cp0[ CP0_Status] & CP0_SR_EXLMask) == 0)
-				pr->cp0[ CP0_EPC] = rrt;
+			pr->cp0[ CP0_EPC] = rrt;
 			break;
 		case CP0_PRId:
 			/* ignored, read-only */


More information about the NSWI004 mailing list