Search
lxdream.org :: lxdream :: r733:633ee022f52e
lxdream 0.9.1
released Jun 29
Download Now
changeset733:633ee022f52e
parent732:f05753bbe723
child734:f8fcc8322b45
authornkeynes
dateFri Jul 11 04:02:25 2008 +0000 (11 years ago)
Bug 60: Fix off-by-one in recovery list size
src/sh4/sh4trans.h
src/sh4/sh4x86.c
src/sh4/sh4x86.in
1.1 --- a/src/sh4/sh4trans.h Thu Jul 10 01:46:00 2008 +0000
1.2 +++ b/src/sh4/sh4trans.h Fri Jul 11 04:02:25 2008 +0000
1.3 @@ -32,7 +32,7 @@
1.4 /** Maximum number of recovery records for a translated block (2048 based on
1.5 * 1 record per SH4 instruction in a 4K page).
1.6 */
1.7 -#define MAX_RECOVERY_SIZE 2048
1.8 +#define MAX_RECOVERY_SIZE 2049
1.9
1.10 /**
1.11 * Translation flag - exit the current block but continue (eg exception handling)
2.1 --- a/src/sh4/sh4x86.c Thu Jul 10 01:46:00 2008 +0000
2.2 +++ b/src/sh4/sh4x86.c Fri Jul 11 04:02:25 2008 +0000
2.3 @@ -41,8 +41,6 @@
2.4 int32_t exc_code;
2.5 };
2.6
2.7 -#define MAX_RECOVERY_SIZE 2048
2.8 -
2.9 #define DELAY_NONE 0
2.10 #define DELAY_PC 1
2.11 #define DELAY_PC_PR 2
3.1 --- a/src/sh4/sh4x86.in Thu Jul 10 01:46:00 2008 +0000
3.2 +++ b/src/sh4/sh4x86.in Fri Jul 11 04:02:25 2008 +0000
3.3 @@ -41,8 +41,6 @@
3.4 int32_t exc_code;
3.5 };
3.6
3.7 -#define MAX_RECOVERY_SIZE 2048
3.8 -
3.9 #define DELAY_NONE 0
3.10 #define DELAY_PC 1
3.11 #define DELAY_PC_PR 2
.