]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/char/sh_serial.c
hw/intc/loongson_liointc: Fix per core ISR handling
[mirror_qemu.git] / hw / char / sh_serial.c
index 67740b7ee6c75d4309b12e96c7498da66241fe17..167f4d8cb9083b01518124c5d515206153d13f5f 100644 (file)
@@ -24,8 +24,9 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+
 #include "qemu/osdep.h"
-#include "hw/hw.h"
+#include "hw/irq.h"
 #include "hw/sh4/sh.h"
 #include "chardev/char-fe.h"
 #include "qapi/error.h"
@@ -357,7 +358,7 @@ static void sh_serial_receive1(void *opaque, const uint8_t *buf, int size)
     }
 }
 
-static void sh_serial_event(void *opaque, int event)
+static void sh_serial_event(void *opaque, QEMUChrEvent event)
 {
     sh_serial_state *s = opaque;
     if (event == CHR_EVENT_BREAK)