Skip to contentSkip to conversation

Compilation on FC3 x86_64 host; sparc target fix

Qemu-devel Bob Deblier 1 participant 1 message Feb 12, 2005

lore
Share & tools
lore
#0 lore raw

Enclosed a patch which allows sparc targets to be compiled; the return type for function cpu_get_phys_page_debug didn't match the declaration.

diff -p -r1.16 translate.c
*** target-sparc/translate.c 30 Jan 2005 22:39:04 -0000 1.16
--- target-sparc/translate.c 12 Feb 2005 14:41:36 -0000
*************** void cpu_dump_state(CPUState *env, FILE *** 1670,1676 ****
}

#if defined(CONFIG_USER_ONLY)
! target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)

  {
      return addr;

}
--- 1670,1676 ----
}

#if defined(CONFIG_USER_ONLY)
! target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)

  {
      return addr;

}
*************** extern int get_physical_address (CPUStat *** 1680,1686 ****
int *access_index, target_ulong
address, int rw,

                                   int is_user);

! target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)

  {
      target_phys_addr_t phys_addr;
      int prot, access_index;
--- 1680,1686 ----
                                   int *access_index, target_ulong
address, int rw,
                                   int is_user);

! target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)

  {
      target_phys_addr_t phys_addr;
      int prot, access_index;

Sincerely,

Bob Deblier