Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmetal/nuttx/io.c: width matched access when read/write size = 1, 2…
…, 4, 8 Follow the virtio spec v1.2: The driver MUST only use 32 bit wide and aligned reads and writes to access the control registers described in table 4.1. For the device-specific configuration space, the driver MUST use 8 bit wide accesses for 8 bit wide fields, 16 bit wide and aligned accesses for 16 bit wide fields and 32 bit wide and aligned accesses for 32 and 64 bit wide fields. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
- Loading branch information