mmiodevice: Move SIZE_ARG macro from pcibase.

This commit is contained in:
joevt 2024-03-08 00:17:27 -08:00 committed by dingusdev
parent bc582e64cc
commit fafbd9a04f
2 changed files with 3 additions and 3 deletions

View File

@ -36,4 +36,7 @@ public:
virtual ~MMIODevice() = default;
};
#define SIZE_ARG(size) (size == 4 ? 'l' : size == 2 ? 'w' : \
size == 1 ? 'b' : '0' + size)
#endif /* MMIO_DEVICE_H */

View File

@ -197,9 +197,6 @@ inline uint32_t pci_cfg_log(uint32_t value, AccessDetails &details) {
}
}
#define SIZE_ARG(size) (size == 4 ? 'l' : size == 2 ? 'w' : \
size == 1 ? 'b' : '0' + size)
#define LOG_READ_UNIMPLEMENTED_CONFIG_REGISTER() \
do { if ((details.flags & PCI_CONFIG_DIRECTION) == PCI_CONFIG_READ) { \
VLOG_F( \