notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d624f8
)
make sure all branches link
author
notaz
<notasas@gmail.com>
Sun, 21 Nov 2010 14:49:37 +0000
(16:49 +0200)
committer
notaz
<notasas@gmail.com>
Sun, 21 Nov 2010 19:38:21 +0000
(21:38 +0200)
libpcsxcore/new_dynarec/assem_arm.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/new_dynarec/assem_arm.c
b/libpcsxcore/new_dynarec/assem_arm.c
index
6d0a40d
..
4af1566
100644
(file)
--- a/
libpcsxcore/new_dynarec/assem_arm.c
+++ b/
libpcsxcore/new_dynarec/assem_arm.c
@@
-826,7
+826,13
@@
u_int genimm(u_int imm,u_int *encoded)
u_int genjmp(u_int addr)
{
int offset=addr-(int)out-8;
- if(offset<-33554432||offset>=33554432) return 0;
+ if(offset<-33554432||offset>=33554432) {
+ if (addr>2) {
+ printf("genjmp: out of range: %08x\n", offset);
+ exit(1);
+ }
+ return 0;
+ }
return ((u_int)offset>>2)&0xffffff;
}