aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-16 01:40:46 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-16 02:13:49 +0200
commit4b816985b8622473afbe3e1bbe066a961661a5da (patch)
tree3b0ed9c13607a5390b2ec99dd3cbf9ee070f0095 /hw/etraxfs.c
parent73cfd29fb34568f926386c2f43811362f2c22154 (diff)
downloadqemu-4b816985b8622473afbe3e1bbe066a961661a5da.zip
qemu-4b816985b8622473afbe3e1bbe066a961661a5da.tar.gz
qemu-4b816985b8622473afbe3e1bbe066a961661a5da.tar.bz2
ETRAX-SER: qdevify.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs.c')
-rw-r--r--hw/etraxfs.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/hw/etraxfs.c b/hw/etraxfs.c
index 52428d1..72b54cf 100644
--- a/hw/etraxfs.c
+++ b/hw/etraxfs.c
@@ -21,15 +21,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include <time.h>
-#include <sys/time.h>
-#include "hw.h"
-#include "net.h"
-#include "flash.h"
-#include "sysemu.h"
-#include "devices.h"
-#include "boards.h"
+#include "sysbus.h"
+#include "boards.h"
+#include "sysemu.h"
+#include "net.h"
#include "etraxfs.h"
#define FLASH_SIZE 0x2000000
@@ -114,10 +110,8 @@ void bareetraxfs_init (ram_addr_t ram_size,
etraxfs_timer_init(env, irq + 0x1b, nmi + 1, 0x3005e000);
for (i = 0; i < 4; i++) {
- if (serial_hds[i]) {
- etraxfs_ser_init(env, irq + 0x14 + i,
- serial_hds[i], 0x30026000 + i * 0x2000);
- }
+ sysbus_create_simple("etraxfs,serial", 0x30026000 + i * 0x2000,
+ irq[0x14 + i]);
}
if (kernel_filename) {