All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt
@ 2005-08-15  8:52 Ralf Baechle
  2005-08-15 22:12 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2005-08-15  8:52 UTC (permalink / raw)
  To: Fabrice Bellard, qemu-devel

The count / compare interrupt is wired to the CPU's internal interrupt
controller, not a PIC.

 hw/mips_r4k.c        |   10 ++++++++--
 target-mips/helper.c |   12 +++++++++++-
 2 files changed, 19 insertions(+), 3 deletions(-)

Index: qemu-mips/hw/mips_r4k.c
===================================================================
--- qemu-mips.orig/hw/mips_r4k.c
+++ qemu-mips/hw/mips_r4k.c
@@ -72,7 +75,8 @@ void cpu_mips_store_count (CPUState *env
 void cpu_mips_store_compare (CPUState *env, uint32_t value)
 {
     cpu_mips_update_count(env, cpu_mips_get_count(env), value);
-    pic_set_irq(5, 0);
+    cpu_single_env->CP0_Cause &= ~0x00008000;
+    cpu_reset_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);
 }
 
 static void mips_timer_cb (void *opaque)
@@ -86,7 +90,8 @@ static void mips_timer_cb (void *opaque)
     }
 #endif
     cpu_mips_update_count(env, cpu_mips_get_count(env), env->CP0_Compare);
-    pic_set_irq(5, 1);
+    cpu_single_env->CP0_Cause |= 0x00008000;
+    cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);
 }
 
 void cpu_mips_clock_init (CPUState *env)

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

* Re: [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt
  2005-08-15  8:52 [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt Ralf Baechle
@ 2005-08-15 22:12 ` Johannes Schindelin
  2005-08-15 22:41   ` Hetz Ben Hamo
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2005-08-15 22:12 UTC (permalink / raw)
  To: qemu-devel

Hi,

On Mon, 15 Aug 2005, Ralf Baechle wrote:

> The count / compare interrupt is wired to the CPU's internal interrupt
> controller, not a PIC.
> 
>  hw/mips_r4k.c        |   10 ++++++++--
>  target-mips/helper.c |   12 +++++++++++-
>  2 files changed, 19 insertions(+), 3 deletions(-)
> 
> Index: qemu-mips/hw/mips_r4k.c
> ===================================================================
> --- qemu-mips.orig/hw/mips_r4k.c
> +++ qemu-mips/hw/mips_r4k.c

Somebody else than me seems to use git on qemu... I regularly cvsimport 
qemu, but do not have webspace to provide it. Is anybody interested in 
hosting it?

Ciao,
Dscho

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

* Re: [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt
  2005-08-15 22:12 ` Johannes Schindelin
@ 2005-08-15 22:41   ` Hetz Ben Hamo
  2005-08-15 23:46     ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Hetz Ben Hamo @ 2005-08-15 22:41 UTC (permalink / raw)
  To: qemu-devel

You can always put it in the forum in the patches area. Just notify
this list that it's there.

Thanks,
Hetz


On 8/16/05, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
> 
> On Mon, 15 Aug 2005, Ralf Baechle wrote:
> 
> > The count / compare interrupt is wired to the CPU's internal interrupt
> > controller, not a PIC.
> >
> >  hw/mips_r4k.c        |   10 ++++++++--
> >  target-mips/helper.c |   12 +++++++++++-
> >  2 files changed, 19 insertions(+), 3 deletions(-)
> >
> > Index: qemu-mips/hw/mips_r4k.c
> > ===================================================================
> > --- qemu-mips.orig/hw/mips_r4k.c
> > +++ qemu-mips/hw/mips_r4k.c
> 
> Somebody else than me seems to use git on qemu... I regularly cvsimport
> qemu, but do not have webspace to provide it. Is anybody interested in
> hosting it?
> 
> Ciao,
> Dscho
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

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

* Re: [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt
  2005-08-15 22:41   ` Hetz Ben Hamo
@ 2005-08-15 23:46     ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2005-08-15 23:46 UTC (permalink / raw)
  To: qemu-devel

Hi,

On Tue, 16 Aug 2005, Hetz Ben Hamo wrote:

> You can always put it in the forum in the patches area. Just notify
> this list that it's there.

Sorry, I did not explain. GIT is the new source code management system 
adopted by many of the Linux kernel developers. It is similar to CVS in 
that it allows you to keep a record on what changes occured, and when, and 
by whom. It is dissimilar to CVS in that it does not need a central server 
(although you can set up even several), and makes it very, very easy to 
work on several branches of your project, merging the result backs to your 
mainline when you're satisfied with the outcome.

My current qemu-git directory uses 6 Megabyte, and in order to be useful, 
it cannot live as a single file on a public server.

Ciao,
Dscho

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

end of thread, other threads:[~2005-08-16  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15  8:52 [Qemu-devel] [PATCH 1/3] Fix MIPS counter / compare interrupt Ralf Baechle
2005-08-15 22:12 ` Johannes Schindelin
2005-08-15 22:41   ` Hetz Ben Hamo
2005-08-15 23:46     ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.