qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4/6] ds1225y nvram: Fix some bugs
@ 2008-03-03 10:45 Hervé Poussineau
  2008-03-13  1:48 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Hervé Poussineau @ 2008-03-03 10:45 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

Attached files fixes some problems with nvram emulation:
- whole nvram was erased in some conditions
- fix out of range accesses
- improve speed by keeping contents in memory

Sorry to not provide a patch for ds1225y.c, but it contains mixed 
line-endings and my diff/patch tools doesn't like that.

[-- Attachment #2: 4_ds1225y.patch --]
[-- Type: text/plain, Size: 659 bytes --]

Index: hw/mips.h
===================================================================
RCS file: /sources/qemu/qemu/hw/mips.h,v
retrieving revision 1.1
diff -u -r1.1 mips.h
--- hw/mips.h	17 Nov 2007 17:14:43 -0000	1.1
+++ hw/mips.h	3 Mar 2008 08:53:18 -0000
@@ -6,8 +6,8 @@
 PCIBus *pci_gt64120_init(qemu_irq *pic);
 
 /* ds1225y.c */
-typedef struct ds1225y_t ds1225y_t;
-ds1225y_t *ds1225y_init(target_phys_addr_t mem_base, const char *filename);
+void *ds1225y_init(target_phys_addr_t mem_base, const char *filename);
+void ds1225y_set_protection(void *opaque, int protection);
 
 /* g364fb.c */
 int g364fb_mm_init(DisplayState *ds, uint8_t *vga_vram_base,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-13  1:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03 10:45 [Qemu-devel] [4/6] ds1225y nvram: Fix some bugs Hervé Poussineau
2008-03-13  1:48 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).