Skip to contentSkip to conversation

target-moxie: replace target_phys_addr_t with hwaddr

PATCH In review Hu Tao 4 participants 4 messages May 15, 2013 – May 18, 2013

lore
Share & tools
lore

Hu Tao

author
#0 lore raw

PATCH 1/1 target-moxie: replace target_phys_addr_t with hwaddr

target_phys_addr_t has been already replaced by hwaddr, but this one is introduced after.

---
 target-moxie/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-moxie/helper.c +1 -1
index 6e0ac2a..5cfe889 100644
@@ -116,7 +116,7 @@ int cpu_moxie_handle_mmu_fault(CPUMoxieState *env, target_ulong address,
     return 1;
 }
 
-target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
+hwaddr cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
 {
     return addr;
 }
Signature · 1 line
1.8.1.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Hu Tao

target_phys_addr_t has been already replaced by hwaddr, but this one is introduced after.

This doesn't cause compile errors because it's in a bit of code that can never get compiled (it's inside a CONFIG_USER_ONLY block but there is no moxie-linux-user target in configure).

thanks
-- PMM

#2 lore raw

Anthony G.,

Am 15.05.2013 10:23, schrieb Peter Maydell:

Quoted 12 lines · Hu Tao
Quoted 4 lines

target_phys_addr_t has been already replaced by hwaddr, but this one is introduced after.

This doesn't cause compile errors because it's in a bit of code that can never get compiled (it's inside a CONFIG_USER_ONLY block but there is no moxie-linux-user target in configure).

A similar issue had come up before and I don't remember seeing a clear answer:

Are you planning to actually implement moxie-linux-user and enable it by default, so that we can catch any errors? Or should we rather drop any such unused CONFIG_USER_ONLY code from target-moxie?

Regards,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg