| 9397 | } |
| 9398 | |
| 9399 | bool debug_get_prefetch(int idx, uae_u16 *opword) |
| 9400 | { |
| 9401 | if (currprefs.cpu_compatible) { |
| 9402 | if (currprefs.cpu_model < 68020) { |
| 9403 | if (idx == 0) { |
| 9404 | *opword = regs.ir; |
| 9405 | return true; |
| 9406 | } |
| 9407 | if (idx == 1) { |
| 9408 | *opword = regs.irc; |
| 9409 | return true; |
| 9410 | } |
| 9411 | *opword = get_word_debug(m68k_getpc() + idx * 2); |
| 9412 | return false; |
| 9413 | } else { |
| 9414 | if (regs.prefetch020_valid[idx]) { |
| 9415 | *opword = regs.prefetch020[idx]; |
| 9416 | return true; |
| 9417 | } |
| 9418 | *opword = get_word_debug(m68k_getpc() + idx * 2); |
| 9419 | return false; |
| 9420 | } |
| 9421 | |
| 9422 | } else { |
| 9423 | *opword = get_word_debug(m68k_getpc() + idx * 2); |
| 9424 | return false; |
| 9425 | } |
| 9426 | } |
| 9427 | |
| 9428 | #define DEBUGSPRINTF_SIZE 32 |
| 9429 | static int debugsprintf_cnt; |
no test coverage detected