Ticket #604: stdby-patch

File stdby-patch, 480 bytes (added by Jakub Jermář, 9 years ago)
Line 
1Only in msim-stdbyfix: config.h
2Only in msim-stdbyfix: config.log
3Only in msim-stdbyfix: config.status
4Only in msim-stdbyfix: Makefile
5diff -u -r msim-1.3.8.4/src/cpu/cpu.c msim-stdbyfix/src/cpu/cpu.c
6--- msim-1.3.8.4/src/cpu/cpu.c 2014-02-18 13:33:28.000000000 +0100
7+++ msim-stdbyfix/src/cpu/cpu.c 2015-04-09 18:01:55.517993596 +0200
8@@ -1716,6 +1716,8 @@
9 res = excTLBS;
10 }
11
12+ if (cpu->stdby)
13+ cpu->pc += 4;
14 cpu->stdby = false;
15
16 /* User info and register fill */