Build again on SunOS; Make MODEL_INLINE default to 1 if inlining, not 2; Use __attrib...
[deliverable/binutils-gdb.git] / sim / ppc / cpu.h
index b66cffd8c3fdc0eafc5f14e3a1b1b1b1143448d1..efd49a529102a1ba2a547a85a358b11d5182a980 100644 (file)
 #include "itable.h"
 #include "mon.h"
 #include "model.h"
-#include "function_unit.h"
 
+#ifndef CONST_ATTRIBUTE
+#define CONST_ATTRIBUTE __attribute__((__const__))
+#endif
 
 /* typedef struct _cpu cpu;
 
@@ -62,13 +64,13 @@ INLINE_CPU void cpu_init
 /* Find our way home */
 
 INLINE_CPU psim *cpu_system
-(cpu *processor);
+(cpu *processor) CONST_ATTRIBUTE;
 
 INLINE_CPU cpu_mon *cpu_monitor
-(cpu *processor);
+(cpu *processor) CONST_ATTRIBUTE;
 
 INLINE_CPU int cpu_nr
-(cpu *processor);
+(cpu *processor) CONST_ATTRIBUTE;
 
 INLINE_CPU event_queue *cpu_event_queue
 (cpu *processor);
@@ -173,16 +175,13 @@ INLINE_CPU void cpu_print_info
    below to when ever a synchronization point is reached */
 
 INLINE_CPU registers *cpu_registers
-(cpu *processor);
+(cpu *processor) CONST_ATTRIBUTE;
 
 INLINE_CPU void cpu_synchronize_context
 (cpu *processor);
 
-INLINE_CPU function_unit *cpu_function_unit
-(cpu *processor);
-
 INLINE_CPU model_data *cpu_model
-(cpu *processor);
+(cpu *processor) CONST_ATTRIBUTE;
 
 #define IS_PROBLEM_STATE(PROCESSOR) \
 (CURRENT_ENVIRONMENT == OPERATING_ENVIRONMENT \
This page took 0.024454 seconds and 4 git commands to generate.