qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] sparc64: trap handling corrections


From: Igor Kovalenko
Subject: [Qemu-devel] [PATCH] sparc64: trap handling corrections
Date: Sun, 12 Jul 2009 03:03:30 +0400

Good trap handling is required to process interrupts.
This patch fixes the following:

- sparc64 has no wim register
- sparc64 has no psret register, use IE bit of pstate
  extract IE checking code to cpu_interrupts_enabled
- alternate globals are not available if cpu has GL feature
  in this case bit AG of pstate is constant zero
- write to pstate must actually write pstate
  even if cpu has GL feature

Also timer interrupt is handled using do_interrupt.
Timer interrupt would require attention later when timers
start to tick (currently timers are not really functional).

Signed-off-by: address@hidden

-- 
Kind regards,
Igor V. Kovalenko

Attachment: sparc64-trap
Description: Binary data


reply via email to

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