mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
grlib, gptimer: get rid of the old-style create function
Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: KONRAD Frederic <frederic.konrad@adacore.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
ea005daec3
commit
948caec873
3 changed files with 19 additions and 29 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* QEMU GRLIB GPTimer Emulator
|
||||
*
|
||||
* Copyright (c) 2010-2011 AdaCore
|
||||
* Copyright (c) 2010-2019 AdaCore
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/sparc/grlib.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
@ -52,7 +53,6 @@
|
|||
#define COUNTER_RELOAD_OFFSET 0x04
|
||||
#define TIMER_BASE 0x10
|
||||
|
||||
#define TYPE_GRLIB_GPTIMER "grlib,gptimer"
|
||||
#define GRLIB_GPTIMER(obj) \
|
||||
OBJECT_CHECK(GPTimerUnit, (obj), TYPE_GRLIB_GPTIMER)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue