diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-11-27 22:54:40 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-11-27 22:54:40 +0000 |
commit | 70fc4ad384117eb03291f191d89019e6e55b75f4 (patch) | |
tree | c8ec33be0733517236c1b2ec41511ff3b087127d /sim/ppc/cpu.h | |
parent | 79e6c66069a1e919ec42673efc498436a7d27202 (diff) | |
download | gdb-70fc4ad384117eb03291f191d89019e6e55b75f4.zip gdb-70fc4ad384117eb03291f191d89019e6e55b75f4.tar.gz gdb-70fc4ad384117eb03291f191d89019e6e55b75f4.tar.bz2 |
Build again on SunOS; Make MODEL_INLINE default to 1 if inlining, not 2; Use __attribute__((const))
Diffstat (limited to 'sim/ppc/cpu.h')
-rw-r--r-- | sim/ppc/cpu.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sim/ppc/cpu.h b/sim/ppc/cpu.h index b66cffd..efd49a5 100644 --- a/sim/ppc/cpu.h +++ b/sim/ppc/cpu.h @@ -38,8 +38,10 @@ #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 \ |