| 486 | } |
| 487 | |
| 488 | int debug_safe_addr (uaecptr addr, int size) |
| 489 | { |
| 490 | if (debug_mmu_mode) { |
| 491 | flagtype olds = regs.s; |
| 492 | regs.s = (debug_mmu_mode & 4) != 0; |
| 493 | TRY(p) { |
| 494 | if (currprefs.mmu_model >= 68040) |
| 495 | addr = mmu_translate (addr, 0, regs.s != 0, (debug_mmu_mode & 1), false, size); |
| 496 | else |
| 497 | addr = mmu030_translate (addr, regs.s != 0, (debug_mmu_mode & 1), false); |
| 498 | } CATCH(p) { |
| 499 | STOPTRY; |
| 500 | return 0; |
| 501 | } ENDTRY |
| 502 | regs.s = olds; |
| 503 | } |
| 504 | addrbank *ab = &get_mem_bank (addr); |
| 505 | if (!ab) |
| 506 | return 0; |
| 507 | if (ab->flags & ABFLAG_SAFE) |
| 508 | return 1; |
| 509 | if (!ab->check (addr, size)) |
| 510 | return 0; |
| 511 | if (ab->flags & (ABFLAG_RAM | ABFLAG_ROM | ABFLAG_ROMIN | ABFLAG_SAFE)) |
| 512 | return 1; |
| 513 | return 0; |
| 514 | } |
| 515 | |
| 516 | static bool iscancel (int counter) |
| 517 | { |
no outgoing calls
no test coverage detected