mirror of https://github.com/contiki-ng/mspsim
gdb memory changes are recognized
This commit is contained in:
parent
bb77ef3fff
commit
695fff2822
|
|
@ -291,7 +291,6 @@ public class HD66753 extends Chip implements USARTListener, PortListener, Action
|
|||
public void portWrite(IOPort source, int data) {
|
||||
int curvalue = ((data >> LED_Bit) & 1);
|
||||
if ((source.getPort() == LED_Port) && (curvalue != value)) {
|
||||
System.err.println(cpu.cpuCycles);
|
||||
long eventcycles=cpu.cpuCycles;
|
||||
if(LEDTimer!=null) eventcycles+=(LEDTimer.currentdiff+1);
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class Exp5438Gui extends AbstractNodeGUI {
|
|||
};
|
||||
|
||||
public Exp5438Gui(Exp5438Node node) {
|
||||
super("MSPSIM fork by Prof. Rüdiger Heintz 0.4.20", "images/MSP-EXP430F5438.jpg");
|
||||
super("MSPSIM fork by Prof. Rüdiger Heintz 0.4.21", "images/MSP-EXP430F5438.jpg");
|
||||
this.node = node;
|
||||
Action scaleDownAction = new AbstractAction() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
|||
|
|
@ -300,7 +300,8 @@ public class GDBStubs implements Runnable {
|
|||
int high=Integer.decode("0x"+wdata[1].substring(2*i, 2*i+1));
|
||||
int low=Integer.decode("0x"+wdata[1].substring(2*i+1, 2*i+2));
|
||||
int Val=low+high*16;
|
||||
cpu.memory[addr+i]=Val;
|
||||
mem.set(addr+i, Val, Memory.AccessMode.WORD);
|
||||
// cpu.memory[addr+i]=Val;
|
||||
}
|
||||
sendResponse(OK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue