mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
accel/tcg: Introduce CF_BP_PAGE
Record the fact that we've found a breakpoint on the page in which a TranslationBlock is running. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
8d65cda728
commit
d828b92b8a
2 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,7 @@ static bool check_for_breakpoints_slow(CPUState *cpu, vaddr pc,
|
||||||
* breakpoints are removed.
|
* breakpoints are removed.
|
||||||
*/
|
*/
|
||||||
if (match_page) {
|
if (match_page) {
|
||||||
*cflags = (*cflags & ~CF_COUNT_MASK) | CF_NO_GOTO_TB | 1;
|
*cflags = (*cflags & ~CF_COUNT_MASK) | CF_NO_GOTO_TB | CF_BP_PAGE | 1;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,7 @@ struct TranslationBlock {
|
||||||
#define CF_PARALLEL 0x00008000 /* Generate code for a parallel context */
|
#define CF_PARALLEL 0x00008000 /* Generate code for a parallel context */
|
||||||
#define CF_NOIRQ 0x00010000 /* Generate an uninterruptible TB */
|
#define CF_NOIRQ 0x00010000 /* Generate an uninterruptible TB */
|
||||||
#define CF_PCREL 0x00020000 /* Opcodes in TB are PC-relative */
|
#define CF_PCREL 0x00020000 /* Opcodes in TB are PC-relative */
|
||||||
|
#define CF_BP_PAGE 0x00040000 /* Breakpoint present in code page */
|
||||||
#define CF_CLUSTER_MASK 0xff000000 /* Top 8 bits are cluster ID */
|
#define CF_CLUSTER_MASK 0xff000000 /* Top 8 bits are cluster ID */
|
||||||
#define CF_CLUSTER_SHIFT 24
|
#define CF_CLUSTER_SHIFT 24
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue