Skip to contentSkip to conversation

M68k for 2.12 patches

GIT PULL Applied Laurent Vivier 2 participants 3 messages Feb 14, 2018 – Feb 15, 2018

lore
Share & tools
lore
#0 lore raw

The following changes since commit bec9c64ef7be8063f1192608b83877bc5c9ea217:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-02-13 18:24:08 +0000)

are available in the Git repository at:

git://github.com/vivier/qemu-m68k.git tags/m68k-for-2.12-pull-request

for you to fetch changes up to 1226e212292e271b8795265c9639d5c0553df199:

m68k: implement movep instruction (2018-02-14 11:09:13 +0100)

----------------------------------------------------------------

----------------------------------------------------------------

Pavel Dovgalyuk (1):
m68k: implement movep instruction

 target/m68k/cpu.c       |  2 ++
 target/m68k/cpu.h       |  1 +
 target/m68k/translate.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
Signature · 1 line
2.14.3
#1 lore raw

[Qemu-devel] [PULL 1/1] m68k: implement movep instruction

From: Pavel Dovgalyuk <[email protected]>

This patch implements movep instruction. It moves data between a data register and alternate bytes within the address space starting at the location specified and incrementing by two.

It was designed for the original 68000 and used in firmwares for interfacing the 8-bit peripherals through the 16-bit data bus. Without this patch opcode for this instruction is recognized as some bitop.

Message-Id: <20180206124431.31433.91946.stgit@pasha-VirtualBox>

---
 target/m68k/cpu.c       |  2 ++
 target/m68k/cpu.h       |  1 +
 target/m68k/translate.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
target/m68k/cpu.c +2 -0
index 6a80be009b..3026714471 100644
@@ -113,6 +113,7 @@ static void m68000_cpu_initfn(Object *obj)
     m68k_set_feature(env, M68K_FEATURE_M68000);
     m68k_set_feature(env, M68K_FEATURE_USP);
     m68k_set_feature(env, M68K_FEATURE_WORD_INDEX);
+    m68k_set_feature(env, M68K_FEATURE_MOVEP);
 }
 
 static void m68020_cpu_initfn(Object *obj)
@@ -135,6 +136,7 @@ static void m68020_cpu_initfn(Object *obj)
     m68k_set_feature(env, M68K_FEATURE_BKPT);
     m68k_set_feature(env, M68K_FEATURE_RTD);
     m68k_set_feature(env, M68K_FEATURE_CHK2);
+    m68k_set_feature(env, M68K_FEATURE_MOVEP);
 }
 #define m68030_cpu_initfn m68020_cpu_initfn
 
target/m68k/cpu.h +1 -0
index 627fb787b6..1d79885222 100644
@@ -492,6 +492,7 @@ enum m68k_features {
     M68K_FEATURE_RTD,
     M68K_FEATURE_CHK2,
     M68K_FEATURE_M68040, /* instructions specific to MC68040 */
+    M68K_FEATURE_MOVEP,
 };
 
 static inline int m68k_feature(CPUM68KState *env, int feature)
target/m68k/translate.c +46 -0

58 lines not on this page · raw message

Signature · 1 line
2.14.3
#2 lore raw
In reply to Laurent Vivier
Quoted 16 lines · Laurent Vivier

The following changes since commit bec9c64ef7be8063f1192608b83877bc5c9ea217:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-02-13 18:24:08 +0000)

are available in the Git repository at:

git://github.com/vivier/qemu-m68k.git tags/m68k-for-2.12-pull-request

for you to fetch changes up to 1226e212292e271b8795265c9639d5c0553df199:

m68k: implement movep instruction (2018-02-14 11:09:13 +0100)

----------------------------------------------------------------

----------------------------------------------------------------

Quoted 7 lines

Pavel Dovgalyuk (1):
m68k: implement movep instruction

 target/m68k/cpu.c       |  2 ++
 target/m68k/cpu.h       |  1 +
 target/m68k/translate.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)

Applied, thanks.

-- PMM