Update debug_defines.h from riscv-debug-spec (#515)

A ton of constants got a new prefix, so I made a lot of changes to
match, but no functional changes.

I did define DTM_DMI_MAX_ADDRESS_LENGTH	in batch.c. That definition
never should have been in debug_defines.h, which I missed during code
review.

Change-Id: If5d86660f84bb0a3f2865fb36ef05d6630486d8b
This commit is contained in:
Tim Newsome 2020-08-24 15:42:29 -07:00 committed by GitHub
parent 920497c62f
commit ca6b1eff1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1778 additions and 1695 deletions

View File

@ -9,6 +9,7 @@
#define get_field(reg, mask) (((reg) & (mask)) / ((mask) & ~((mask) << 1)))
#define set_field(reg, mask, val) (((reg) & ~(mask)) | (((val) * ((mask) & ~((mask) << 1))) & (mask)))
#define DTM_DMI_MAX_ADDRESS_LENGTH ((1<<DTM_DTMCS_ABITS_LENGTH)-1)
#define DMI_SCAN_MAX_BIT_LENGTH (DTM_DMI_MAX_ADDRESS_LENGTH + DTM_DMI_DATA_LENGTH + DTM_DMI_OP_LENGTH)
#define DMI_SCAN_BUF_SIZE (DIV_ROUND_UP(DMI_SCAN_MAX_BIT_LENGTH, 8))

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff