sim: drop unused CORE_ADDR_TYPE

Message ID 20221108071031.15585-1-vapier@gentoo.org
State Committed
Headers
Series sim: drop unused CORE_ADDR_TYPE |

Commit Message

Mike Frysinger Nov. 8, 2022, 7:10 a.m. UTC
  This hasn't been used by gdb in decades, and doesn't make sense with
a standalone sim program/library where the ABI is fixed.  So punt it
to simplify the code.
---
 include/sim/sim.h | 7 -------
 1 file changed, 7 deletions(-)
  

Patch

diff --git a/include/sim/sim.h b/include/sim/sim.h
index 5569481da991..20a667cab7d3 100644
--- a/include/sim/sim.h
+++ b/include/sim/sim.h
@@ -27,14 +27,7 @@  extern "C" {
 /* This file is used when building stand-alone simulators, so isolate this
    file from gdb.  */
 
-/* Pick up CORE_ADDR_TYPE if defined (from gdb), otherwise use same value as
-   gdb does (unsigned int - from defs.h).  */
-
-#ifndef CORE_ADDR_TYPE
 typedef unsigned int SIM_ADDR;
-#else
-typedef CORE_ADDR_TYPE SIM_ADDR;
-#endif
 
 
 /* Semi-opaque type used as result of sim_open and passed back to all