507 |
|
p16[1] = htons(M68K_RTS); |
508 |
|
D(bug(" patch 1 applied\n")); |
509 |
|
} |
510 |
+ |
|
511 |
+ |
} else if (type == FOURCC('N','O','b','j') && id == 100) { |
512 |
+ |
D(bug("NObj 100 found\n")); |
513 |
+ |
|
514 |
+ |
// Don't access VIA registers in MacBench 5.0 |
515 |
+ |
static const uint8 dat1[] = {0x7c, 0x08, 0x02, 0xa6, 0xbf, 0x01, 0xff, 0xe0, 0x90, 0x01, 0x00, 0x08}; |
516 |
+ |
base = find_rsrc_data((uint8 *)p, size, dat1, sizeof(dat1)); |
517 |
+ |
if (base) { |
518 |
+ |
p[(base + 0x00) >> 1] = htons(0x3860); // li r3,0 |
519 |
+ |
p[(base + 0x02) >> 1] = htons(0x0000); |
520 |
+ |
p[(base + 0x04) >> 1] = htons(0x4e80); // blr |
521 |
+ |
p[(base + 0x06) >> 1] = htons(0x0020); |
522 |
+ |
D(bug(" patch 1 applied\n")); |
523 |
+ |
} |
524 |
+ |
static const uint8 dat2[] = {0x7c, 0x6c, 0x1b, 0x78, 0x7c, 0x8b, 0x23, 0x78, 0x38, 0xc0, 0x3f, 0xfd}; |
525 |
+ |
base = find_rsrc_data((uint8 *)p, size, dat2, sizeof(dat2)); |
526 |
+ |
if (base) { |
527 |
+ |
p[(base + 0x00) >> 1] = htons(0x3860); // li r3,0 |
528 |
+ |
p[(base + 0x02) >> 1] = htons(0x0000); |
529 |
+ |
p[(base + 0x04) >> 1] = htons(0x4e80); // blr |
530 |
+ |
p[(base + 0x06) >> 1] = htons(0x0020); |
531 |
+ |
D(bug(" patch 2 applied\n")); |
532 |
+ |
} |
533 |
|
} |
534 |
|
} |
535 |
|
|