xiaoxiang781216 commented on code in PR #12896: URL: https://github.com/apache/nuttx/pull/12896#discussion_r1713280035
########## arch/risc-v/src/qemu-rv/hardware/qemu_rv_memorymap.h: ########## @@ -27,9 +27,23 @@ /* Register Base Address ****************************************************/ -#define QEMU_RV_CLINT_BASE 0x02000000 -#define QEMU_RV_ACLINT_BASE 0x02f00000 -#define QEMU_RV_PLIC_BASE 0x0c000000 +#ifdef CONFIG_ARCH_CHIP_QEMU_RV_PLIC +# define QEMU_RV_PLIC_BASE CONFIG_ARCH_CHIP_QEMU_RV_PLIC +#else +# define QEMU_RV_PLIC_BASE 0xc000000 +#endif + +#ifdef CONFIG_ARCH_CHIP_QEMU_RV_CLINT +# define QEMU_RV_CLINT_BASE CONFIG_ARCH_CHIP_QEMU_RV_CLINT +#else +# define QEMU_RV_CLINT_BASE 0x2000000 +#endif + +#ifdef CONFIG_ARCH_CHIP_QEMU_RV_ACLINT +# define QEMU_RV_ACLINT_BASE CONFIG_ARCH_CHIP_QEMU_RV_ACLINT +#else +# define QEMU_RV_ACLINT_BASE 0x2f00000 +#endif #define QEMU_RV_RESET_BASE 0x100000 Review Comment: align with other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
