qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Compilation on FC3 x86_64 host; sparc target fix


From: Bob Deblier
Subject: [Qemu-devel] Compilation on FC3 x86_64 host; sparc target fix
Date: Sat, 12 Feb 2005 15:43:59 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]