qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4/6] ds1225y nvram: Fix some bugs
Date: Mon, 03 Mar 2008 11:45:28 +0100	[thread overview]
Message-ID: <47CBD6C8.9040907@reactos.org> (raw)

[-- 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,

             reply	other threads:[~2008-03-03 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03 10:45 Hervé Poussineau [this message]
2008-03-13  1:48 ` [Qemu-devel] [4/6] ds1225y nvram: Fix some bugs Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CBD6C8.9040907@reactos.org \
    --to=hpoussin@reactos.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).