You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/02/25 12:36:25 UTC

[incubator-nuttx] 03/03: arch/risc-v: Remove unneeded ISA specifc interface

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e8552156b6ba846fd07c02020a6a492ba9123a83
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Fri Feb 25 15:37:26 2022 +0800

    arch/risc-v: Remove unneeded ISA specifc interface
    
    They are not really defined and used in any where:
    uint32_t up_getmisa(void);
    uint32_t up_getarchid(void);
    uint32_t up_getimpid(void);
    uint32_t up_getvendorid(void);
    uint32_t up_gethartid(void);
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 arch/risc-v/include/arch.h | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/arch/risc-v/include/arch.h b/arch/risc-v/include/arch.h
index 62f19e7..92b1f66 100644
--- a/arch/risc-v/include/arch.h
+++ b/arch/risc-v/include/arch.h
@@ -41,27 +41,6 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
-/* Macros to get the core and vendor ID, HART, arch and ISA codes, etc.
- */
-
-#ifdef CONFIG_RV32IM_SYSTEM_CSRRS_SUPPORT
-
-uint32_t up_getmisa(void);
-uint32_t up_getarchid(void);
-uint32_t up_getimpid(void);
-uint32_t up_getvendorid(void);
-uint32_t up_gethartid(void);
-
-#else
-
-#define up_getmisa() 0
-#define up_getarchid() 0
-#define up_getimpid() 0
-#define up_getvendorid() 0
-#define up_gethartid() 0
-
-#endif
-
 /****************************************************************************
  * Inline functions
  ****************************************************************************/