Skip to contentSkip to conversation

openrisc: cpu: Remove unused cpu_get_pc

PATCH In review Peter Crosthwaite 2 participants 2 messages Apr 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openrisc: cpu: Remove unused cpu_get_pc

This function is not used by anything. Remove.

---
 target-openrisc/cpu.h | 5 -----
 1 file changed, 5 deletions(-)
target-openrisc/cpu.h +0 -5
index b25324b..9e23cd0 100644
@@ -415,9 +415,4 @@ static inline int cpu_mmu_index(CPUOpenRISCState *env)
 
 #include "exec/exec-all.h"
 
-static inline target_ulong cpu_get_pc(CPUOpenRISCState *env)
-{
-    return env->pc;
-}
-
 #endif /* CPU_OPENRISC_H */
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Peter Crosthwaite

This function is not used by anything. Remove.

---
 target-openrisc/cpu.h | 5 -----
 1 file changed, 5 deletions(-)
target-openrisc/cpu.h +0 -0
index b25324b..9e23cd0 100644

target-openrisc/cpu.h static inline int cpu_mmu_index(CPUOpenRISCState *env) · line 418

Quoted 9 lines
target-openrisc/cpu.h +0 -5
@@ -415,9 +415,4 @@ static inline int cpu_mmu_index(CPUOpenRISCState *env)
 
 #include "exec/exec-all.h"
 
-static inline target_ulong cpu_get_pc(CPUOpenRISCState *env)
-{
-    return env->pc;
-}
-
 #endif /* CPU_OPENRISC_H */

Are you going to clean up the the microblaze one as well?

Signature · 1 line
Alex Bennée