summary refs log tree commit diff stats
path: root/target-openrisc/translate.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-01-15 10:08:46 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-01-15 10:08:46 +0000
commitdf58887b20fab8fe8a6dcca4db30cd4e4077d53a (patch)
treef4831cf96c57d4974e6fe6d61b5ee98114de72e0 /target-openrisc/translate.c
parentb629a38a13745d62d44de8ebb00f4e38ec6d8f7e (diff)
parent99efa84d5c02e33bcca7be83dd7cabc4b0f22f14 (diff)
downloadfocaccia-qemu-df58887b20fab8fe8a6dcca4db30cd4e4077d53a.tar.gz
focaccia-qemu-df58887b20fab8fe8a6dcca4db30cd4e4077d53a.zip
Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2015-01-15' into staging
trivial patches for 2015-01-15

# gpg: Signature made Thu 15 Jan 2015 08:26:26 GMT using RSA key ID A4C3D7DB
# gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
# gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
# gpg:                 aka "Michael Tokarev <mjt@debian.org>"

* remotes/mjt/tags/pull-trivial-patches-2015-01-15:
  vl.c: fix some alignment issues
  blizzard: do not depend on VGA internals
  Makefile: Remove config.status and common.env during 'make distclean'
  target-openrisc: bugfix for dec_sys to decode instructions correctly
  Do not hang on full PTY
  misc: Fix new typos in comments
  target-arm: Fix typo in comment (seperately -> separately)
  target-tricore: Fix new typos
  migration/qemu-file.c: Don't shift left into sign bit
  translate-all: Mark map_exec() with the 'unused' attribute
  tests/hd-geo-test.c: Remove unused test_image variable
  vt82c686: avoid out-of-bounds read

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-openrisc/translate.c')
-rw-r--r--target-openrisc/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c
index 7dea405c69..b90181dc70 100644
--- a/target-openrisc/translate.c
+++ b/target-openrisc/translate.c
@@ -1320,7 +1320,7 @@ static void dec_sys(DisasContext *dc, uint32_t insn)
 #ifdef OPENRISC_DISAS
     uint32_t K16;
 #endif
-    op0 = extract32(insn, 16, 8);
+    op0 = extract32(insn, 16, 10);
 #ifdef OPENRISC_DISAS
     K16 = extract32(insn, 0, 16);
 #endif