ARM-software / bsa-acs

Arm SystemReady : BSA Architecture Compliance Suite
Apache License 2.0
16 stars 42 forks source link

Add support for using access width from SPCR table #45

Closed robbiek-xsl closed 2 years ago

robbiek-xsl commented 2 years ago

Current 16550 test code assumes 8 bit accesses and one byte stride on register addresses. Add support for using the access width to compute the size of accesses as well as the register stride. Similar support added to Linux by the following commit in 2017.

https://github.com/torvalds/linux/commit/2bece49394872d36bbc5767fd643deac05920c55

Note that the Generic Address Structure also contains a separate description of the "register bit width" in addition to access size which could be used to derive the register addressing stride independently of the access width.