Patchwork [5/7] lsi53c895a: Fix SDID in SELECT ID command

login
register
mail settings
Submitter Jan Kiszka
Date Nov. 19, 2009, 10:07 a.m.
Message ID <20091119100712.16666.55897.stgit@mchn012c.ww002.siemens.net>
Download mbox | patch
Permalink /patch/38825/
State New
Headers show

Comments

Jan Kiszka - Nov. 19, 2009, 10:07 a.m.
From: Laszlo Ast <laszlo.ast@siemens-enterprise.com>

See SCRIPTS Programming Guide, 3.2.17 SELECT.

Signed-off-by: Laszlo Ast <laszlo.ast@siemens-enterprise.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 hw/lsi53c895a.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 2fb928d..4c638be 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -1028,7 +1028,7 @@  again:
             if (insn & (1 << 25)) {
                 id = read_dword(s, s->dsa + sxt24(insn));
             } else {
-                id = addr;
+                id = insn;
             }
             id = (id >> 16) & 0xf;
             if (insn & (1 << 26)) {