Commit ebc06f87cac28301bf30e8d23a069691a8db3635

Authored by bellard
1 parent 5bbe9299

alpha fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@228 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 20 deletions
dyngen.c
@@ -1207,26 +1207,6 @@ int load_elf(const char *filename, FILE *outfile, int do_print_enum) @@ -1207,26 +1207,6 @@ int load_elf(const char *filename, FILE *outfile, int do_print_enum)
1207 } 1207 }
1208 } else { 1208 } else {
1209 /* generate big code generation switch */ 1209 /* generate big code generation switch */
1210 -#ifdef HOST_ALPHA  
1211 -fprintf(outfile,  
1212 -"register int gp asm(\"$29\");\n"  
1213 -"static inline void immediate_ldah(void *p, int val) {\n"  
1214 -" uint32_t *dest = p;\n"  
1215 -" long high = ((val >> 16) + ((val >> 15) & 1)) & 0xffff;\n"  
1216 -"\n"  
1217 -" *dest &= ~0xffff;\n"  
1218 -" *dest |= high;\n"  
1219 -" *dest |= 31 << 16;\n"  
1220 -"}\n"  
1221 -"static inline void immediate_lda(void *dest, int val) {\n"  
1222 -" *(uint16_t *) dest = val;\n"  
1223 -"}\n"  
1224 -"void fix_bsr(void *p, int offset) {\n"  
1225 -" uint32_t *dest = p;\n"  
1226 -" *dest &= ~((1 << 21) - 1);\n"  
1227 -" *dest |= (offset >> 2) & ((1 << 21) - 1);\n"  
1228 -"}\n");  
1229 -#endif  
1230 fprintf(outfile, 1210 fprintf(outfile,
1231 "int dyngen_code(uint8_t *gen_code_buf,\n" 1211 "int dyngen_code(uint8_t *gen_code_buf,\n"
1232 " uint16_t *label_offsets, uint16_t *jmp_offsets,\n" 1212 " uint16_t *label_offsets, uint16_t *jmp_offsets,\n"