Mercurial > repos > blastem
comparison m68k_core.c @ 2424:767ec72acca7
Avoid conflicts between watchpoints and normal debugger entry
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 24 Jan 2024 18:51:44 -0800 |
parents | b733a10488c6 |
children | d74d3998482c |
comparison
equal
deleted
inserted
replaced
2423:b733a10488c6 | 2424:767ec72acca7 |
---|---|
865 context->wp_hit_address = address; | 865 context->wp_hit_address = address; |
866 context->wp_hit_value = value; | 866 context->wp_hit_value = value; |
867 context->wp_hit = 1; | 867 context->wp_hit = 1; |
868 context->target_cycle = context->sync_cycle = context->current_cycle; | 868 context->target_cycle = context->sync_cycle = context->current_cycle; |
869 system_header *system = context->system; | 869 system_header *system = context->system; |
870 system->enter_debugger = 1; | |
871 return vcontext; | 870 return vcontext; |
872 } | 871 } |
873 | 872 |
874 static void *m68k_watchpoint_check8(uint32_t address, void *vcontext, uint8_t value) | 873 static void *m68k_watchpoint_check8(uint32_t address, void *vcontext, uint8_t value) |
875 { | 874 { |
890 context->wp_hit_address = address; | 889 context->wp_hit_address = address; |
891 context->wp_hit_value = value; | 890 context->wp_hit_value = value; |
892 context->wp_hit = 1; | 891 context->wp_hit = 1; |
893 context->target_cycle = context->sync_cycle = context->current_cycle; | 892 context->target_cycle = context->sync_cycle = context->current_cycle; |
894 system_header *system = context->system; | 893 system_header *system = context->system; |
895 system->enter_debugger = 1; | |
896 return vcontext; | 894 return vcontext; |
897 } | 895 } |
898 | 896 |
899 static void m68k_enable_watchpoints(m68k_context *context) | 897 static void m68k_enable_watchpoints(m68k_context *context) |
900 { | 898 { |