summaryrefslogtreecommitdiff
path: root/dyngen.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-02 20:38:09 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-02 20:38:09 +0000
commit2f87c60799042f6c9936040cedf6ea8dc690ca22 (patch)
tree966e04bd3506d60213e591a5ef94523248584c92 /dyngen.c
parent03bfca946a9fdf7a437f28183be36b4bf89b51e9 (diff)
downloadqemu-2f87c60799042f6c9936040cedf6ea8dc690ca22.tar.gz
Alpha update (Falk Hueffner)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@203 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen.c')
-rw-r--r--dyngen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyngen.c b/dyngen.c
index bfc1540c3a..225d2bab86 100644
--- a/dyngen.c
+++ b/dyngen.c
@@ -691,7 +691,7 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
case R_ALPHA_BRSGP:
/* PC-relative jump. Tweak offset to skip the two instructions that try to
set up the gp from the pv. */
- fprintf(outfile, " fix_bsr(gen_code_ptr + %ld, (uint8_t *) &%s - (gen_code_ptr + %ld) + 4);\n",
+ fprintf(outfile, " fix_bsr(gen_code_ptr + %ld, (uint8_t *) &%s - (gen_code_ptr + %ld + 4) + 8);\n",
rel->r_offset - start_offset, sym_name, rel->r_offset - start_offset);
break;
default: