]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: correct order of function arguments for mkFormVEC
authorPetar Jovanovic <mips32r2@gmail.com>
Mon, 18 Mar 2019 15:47:50 +0000 (16:47 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Mon, 18 Mar 2019 15:48:45 +0000 (16:48 +0100)
Vectors wt and ws were incorrectly received in mkFormVEC().
Issue spotted by Mark Wielaard and reported as KDE #405458.

VEX/priv/host_mips_defs.c

index 64a769dcfd6e2ab307dab1e4298118d0104d4aa9..7a3faed48936c6622ad39af86eea972e8bde6c2f 100644 (file)
@@ -3373,7 +3373,7 @@ static UChar *mkForm3R(UChar *p, UInt op, UInt df, UInt wd, UInt ws, UInt wt) {
    return emit32(p, theInstr);
 }
 
-static UChar *mkFormVEC(UChar *p, UInt op, UInt ws, UInt wt, UInt wd) {
+static UChar *mkFormVEC(UChar *p, UInt op, UInt wt, UInt ws, UInt wd) {
    UInt theInstr;
    vassert(op  < 0x20);
    vassert(wt  < 0x20);