Revision 5fafdf24 hw/iommu.c

b/hw/iommu.c
2 2
 * QEMU SPARC iommu emulation
3 3
 *
4 4
 * Copyright (c) 2003-2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
279 279
{
280 280
    IOMMUState *s = opaque;
281 281
    int i;
282
    
282
   
283 283
    for (i = 0; i < IOMMU_NREGS; i++)
284 284
	qemu_put_be32s(f, &s->regs[i]);
285 285
    qemu_put_be64s(f, &s->iostart);
......
289 289
{
290 290
    IOMMUState *s = opaque;
291 291
    int i;
292
    
292
   
293 293
    if (version_id != 2)
294 294
        return -EINVAL;
295 295

  
......
322 322

  
323 323
    iommu_io_memory = cpu_register_io_memory(0, iommu_mem_read, iommu_mem_write, s);
324 324
    cpu_register_physical_memory(addr, IOMMU_NREGS * 4, iommu_io_memory);
325
    
325
   
326 326
    register_savevm("iommu", addr, 2, iommu_save, iommu_load, s);
327 327
    qemu_register_reset(iommu_reset, s);
328 328
    return s;

Also available in: Unified diff