* [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c
@ 2008-02-26 17:18 Jerone Young
2008-02-26 19:18 ` [kvm-ppc-devel] " Hollis Blanchard
2008-02-27 10:38 ` Avi Kivity
0 siblings, 2 replies; 3+ messages in thread
From: Jerone Young @ 2008-02-26 17:18 UTC (permalink / raw)
To: kvm-devel; +Cc: kvm-ppc-devel
# HG changeset patch
# User Jerone Young <jyoung5@us.ibm.com>
# Date 1204046245 21600
# Branch merge
# Node ID 1980deb2bddff30c2f798d33937759a7ce91c242
# Parent e1260182b60d6d6716870c3bff82f503fad868fb
Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
diff --git a/qemu/target-ppc/fake-exec.c b/qemu/target-ppc/fake-exec.c
--- a/qemu/target-ppc/fake-exec.c
+++ b/qemu/target-ppc/fake-exec.c
@@ -19,6 +19,22 @@
#include "cpu.h"
#include "exec-all.h"
+
+
+struct ppc_def_t {
+ const unsigned char *name;
+ uint32_t pvr;
+ uint32_t svr;
+ uint64_t insns_flags;
+ uint64_t msr_mask;
+ powerpc_mmu_t mmu_model;
+ powerpc_excp_t excp_model;
+ powerpc_input_t bus_model;
+ uint32_t flags;
+ int bfd_mach;
+ void (*init_proc)(CPUPPCState *env);
+ int (*check_pow)(CPUPPCState *env);
+};
int code_copy_enabled = 0;
@@ -60,13 +76,26 @@ int cpu_ppc_gen_code(CPUState *env, Tran
return 0;
}
+void init_proc_ppc440ep_kvm(CPUPPCState *env)
+{
+ ppc40x_irq_init(env);
+}
+
+static ppc_def_t ppc440ep_kvm = {
+ .name = "440EP KVM",
+ .mmu_model = POWERPC_MMU_SOFT_4xx, /*XXX needed for GDB stub */
+ .init_proc = init_proc_ppc440ep_kvm,
+};
+
const ppc_def_t *cpu_ppc_find_by_name (const unsigned char *name)
{
- return NULL;
+ return &ppc440ep_kvm;
}
int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def)
{
+ env->mmu_model = def->mmu_model;
+ (*def->init_proc)(env);
return 0;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [kvm-ppc-devel] [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c
2008-02-26 17:18 [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c Jerone Young
@ 2008-02-26 19:18 ` Hollis Blanchard
2008-02-27 10:38 ` Avi Kivity
1 sibling, 0 replies; 3+ messages in thread
From: Hollis Blanchard @ 2008-02-26 19:18 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel, kvm-ppc-devel, Jerone Young
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Avi, please apply.
--
Hollis Blanchard
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c
2008-02-26 17:18 [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c Jerone Young
2008-02-26 19:18 ` [kvm-ppc-devel] " Hollis Blanchard
@ 2008-02-27 10:38 ` Avi Kivity
1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2008-02-27 10:38 UTC (permalink / raw)
To: Jerone Young; +Cc: kvm-devel, kvm-ppc-devel
Jerone Young wrote:
> # HG changeset patch
> # User Jerone Young <jyoung5@us.ibm.com>
> # Date 1204046245 21600
> # Branch merge
> # Node ID 1980deb2bddff30c2f798d33937759a7ce91c242
> # Parent e1260182b60d6d6716870c3bff82f503fad868fb
> Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c
>
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-27 10:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 17:18 [PATCH] Fix PowerPC Qemu CPU initilization when using target-ppc/fake-exec.c Jerone Young
2008-02-26 19:18 ` [kvm-ppc-devel] " Hollis Blanchard
2008-02-27 10:38 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox