- epilogue bug fixec
- isFreezeAsserted removed where it is not neccessary git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@124 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -255,7 +255,7 @@ public class MPC555 {
|
|||||||
|
|
||||||
// restore GPR30
|
// restore GPR30
|
||||||
// put instr mfspr: GPR30, DPDR
|
// put instr mfspr: GPR30, DPDR
|
||||||
transferAndParse35(false, false, 0x7FF69AA6);
|
transferAndParse35(false, false, 0x7FD69AA6);
|
||||||
// put GPR30 in DPDR
|
// put GPR30 in DPDR
|
||||||
logger.finer("write gpr30: 0x" + Integer.toHexString(gpr30));
|
logger.finer("write gpr30: 0x" + Integer.toHexString(gpr30));
|
||||||
transferAndParse35(false, true, gpr30);
|
transferAndParse35(false, true, gpr30);
|
||||||
@@ -300,12 +300,8 @@ public class MPC555 {
|
|||||||
// throw an exception if EBRK (External breakpoint exception) bit is not
|
// throw an exception if EBRK (External breakpoint exception) bit is not
|
||||||
// set
|
// set
|
||||||
if ((ecr & (EBRK_bit * 2)) <= 0) {
|
if ((ecr & (EBRK_bit * 2)) <= 0) {
|
||||||
// TODO: change exception string
|
throw new BDIException(
|
||||||
logger
|
"Wrong debug enable cause (not due to EBRK): Exception Cause Register = "
|
||||||
.warning("Wrong debug enable cause (not due to EBRK): Exception Cause Register = "
|
|
||||||
+ "0x" + Integer.toHexString(ecr));
|
|
||||||
System.err
|
|
||||||
.println("Wrong debug enable cause (not due to EBRK): Exception Cause Register = "
|
|
||||||
+ "0x" + Integer.toHexString(ecr));
|
+ "0x" + Integer.toHexString(ecr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -325,8 +321,6 @@ public class MPC555 {
|
|||||||
}
|
}
|
||||||
// negate breakpoint
|
// negate breakpoint
|
||||||
transferAndParse35(true, true, 0x3E000000);
|
transferAndParse35(true, true, 0x3E000000);
|
||||||
// check if target is in debug mode
|
|
||||||
targetInDebugMode = isFreezeAsserted();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -343,6 +337,9 @@ public class MPC555 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
epilogue();
|
epilogue();
|
||||||
|
// force a check whether the freeze signal is asserted or not
|
||||||
|
// this has to be done, because the state is not updated in the epilogue
|
||||||
|
// instructions
|
||||||
targetInDebugMode = isFreezeAsserted();
|
targetInDebugMode = isFreezeAsserted();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,7 +391,6 @@ public class MPC555 {
|
|||||||
"Wrong debug enable cause (not because of DPI): Exception Cause Register = 0x"
|
"Wrong debug enable cause (not because of DPI): Exception Cause Register = 0x"
|
||||||
+ Integer.toHexString(ecr));
|
+ Integer.toHexString(ecr));
|
||||||
}
|
}
|
||||||
targetInDebugMode = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user