mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/arm: Use field names for accessing DBGWCRn
While defining these names, use the correct field width of 5 not 4 for DBGWCR.MASK. This typo prevented setting a watchpoint larger than 32k. Reported-by: Chris Howard <cvz185@web.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20220427051926.295223-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
eb851c1151
commit
8b7a5bbecf
4 changed files with 28 additions and 16 deletions
|
@ -143,9 +143,9 @@ static bool bp_wp_matches(ARMCPU *cpu, int n, bool is_wp)
|
|||
* Non-Secure to simplify the code slightly compared to the full
|
||||
* table in the ARM ARM.
|
||||
*/
|
||||
pac = extract64(cr, 1, 2);
|
||||
hmc = extract64(cr, 13, 1);
|
||||
ssc = extract64(cr, 14, 2);
|
||||
pac = FIELD_EX64(cr, DBGWCR, PAC);
|
||||
hmc = FIELD_EX64(cr, DBGWCR, HMC);
|
||||
ssc = FIELD_EX64(cr, DBGWCR, SSC);
|
||||
|
||||
switch (ssc) {
|
||||
case 0:
|
||||
|
@ -184,8 +184,8 @@ static bool bp_wp_matches(ARMCPU *cpu, int n, bool is_wp)
|
|||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
wt = extract64(cr, 20, 1);
|
||||
lbn = extract64(cr, 16, 4);
|
||||
wt = FIELD_EX64(cr, DBGWCR, WT);
|
||||
lbn = FIELD_EX64(cr, DBGWCR, LBN);
|
||||
|
||||
if (wt && !linked_bp_matches(cpu, lbn)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue