qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix call_pal() prototype for alpha system emulation
@ 2008-08-16 16:08 Hervé Poussineau
  2008-09-02  0:11 ` Aurelien Jarno
  0 siblings, 1 reply; 3+ messages in thread
From: Hervé Poussineau @ 2008-08-16 16:08 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Hi,

- Fix call_pal() function prototype which is different depending of
CONFIG_USER_ONLY.
- Add cpu_reset() function, required for system emulation

Hervé

[-- Attachment #2: alpha.diff --]
[-- Type: text/plain, Size: 925 bytes --]

Index: target-alpha/cpu.h
===================================================================
--- target-alpha/cpu.h	(revision 5013)
+++ target-alpha/cpu.h	(working copy)
@@ -411,7 +411,11 @@
 int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp);
 void cpu_loop_exit (void);
 void pal_init (CPUState *env);
+#if !defined (CONFIG_USER_ONLY)
+void call_pal (CPUState *env);
+#else
 void call_pal (CPUState *env, int palcode);
+#endif
 
 #define CPU_PC_FROM_TB(env, tb) env->pc = tb->pc
 
Index: target-alpha/translate.c
===================================================================
--- target-alpha/translate.c	(revision 5013)
+++ target-alpha/translate.c	(working copy)
@@ -2138,6 +2138,10 @@
     return env;
 }
 
+void cpu_reset (CPUAlphaState *env)
+{
+}
+
 void gen_pc_load(CPUState *env, TranslationBlock *tb,
                 unsigned long searched_pc, int pc_pos, void *puc)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-02  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-16 16:08 [Qemu-devel] [PATCH] Fix call_pal() prototype for alpha system emulation Hervé Poussineau
2008-09-02  0:11 ` Aurelien Jarno
2008-09-02  8:11   ` Laurent Desnogues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).