shithub: riscv

Download patch

ref: e53511ef4c7d4db443543506e74e4de537da5475
parent: cc001c31a7c2ac9f01c334adb2ff78da59c91436
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 12 21:24:55 EDT 2014

libmach: fix break point instruction for little endian MIPS (from sources)

fix break point instruction for little endian MIPS in
libmach. (patch /n/sources/patch/libmach-mipsle-bpinst)

--- a/sys/src/libmach/vdb.c
+++ b/sys/src/libmach/vdb.c
@@ -37,7 +37,7 @@
 
 Machdata mipsmachle =
 {
-	{0, 0, 0, 0xD},		/* break point */
+	{0xD, 0, 0, 0},		/* break point */
 	4,			/* break point size */
 
 	leswab,			/* short to local byte order */
@@ -60,7 +60,7 @@
  */
 Machdata mipsmach2le =
 {
-	{0, 0, 0, 0xD},		/* break point */
+	{0xD, 0, 0, 0},		/* break point */
 	4,			/* break point size */
 
 	leswab,			/* short to local byte order */