Date: Mon, 27 Sep 2010 13:08:05 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= <phcoder@gmail.com> To: freebsd-mips@freebsd.org Subject: Re: [PATCH] [yeeloong] 64-bit disassemble and disassemble cache instruction Message-ID: <4CA07B15.3080905@gmail.com> In-Reply-To: <4CA043FB.4010904@gmail.com> References: <4CA043FB.4010904@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080200010505070802060807 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 09/27/2010 09:12 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko --------------080200010505070802060807 Content-Type: text/plain; name="disasm.diff.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="disasm.diff.txt" PT09IG1vZGlmaWVkIGZpbGUgJ21pcHMvbWlwcy9kYl9kaXNhc20uYycKLS0tIG1pcHMvbWlw cy9kYl9kaXNhc20uYwkyMDEwLTA4LTEzIDIyOjE2OjQ5ICswMDAwCisrKyBtaXBzL21pcHMv ZGJfZGlzYXNtLmMJMjAxMC0wOC0xMyAyMjoyMDo0OSArMDAwMApAQCAtNTMsNiArNTMsMTcg QEAKICNpbmNsdWRlIDxkZGIvZGRiLmg+CiAjaW5jbHVkZSA8ZGRiL2RiX291dHB1dC5oPgog CitzdGF0aWMgY2hhciAqY2FjaGVfb3Bfc3VmZml4WzRdID0geworCSJpIiwgImQiLCAicyIs ICJzaSIKK307CisKK3N0YXRpYyBjaGFyICpjYWNoZV9vcF90eXBlWzhdID0geworCSJJbmRl eF9Xcml0ZWJhY2tfSW52YWxpZGF0ZSIsICJJbmRleF9Mb2FkX1RhZyIsCisJIkluZGV4X1N0 b3JlX1RhZyIsICJDcmVhdGVfRGlydHlfRVhDTCIsCisJIkhpdF9JbnZhbGlkYXRlIiwgIkhp dF9Xcml0ZWJhY2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GogPCA0OyBqICsrKSB7CiAJCWlmIChq ID4gMCkKIAkJCSgqcHJpbnRmbikoIiwiKTsKIAkJaWYgKHZhbGlkX2FyZ3Nbal0pCi0JCQko KnByaW50Zm4pKCIleCIsIGFyZ3Nbal0pOworCQkJKCpwcmludGZuKSgiJWx4IiwgKHVuc2ln bmVkIGxvbmcpIGFyZ3Nbal0pOwogCQllbHNlCiAJCQkoKnByaW50Zm4pKCI/Iik7CiAJfQog Ci0JKCpwcmludGZuKSAoIikgcmEgJXggc3AgJXggc3ogJWRcbiIsIHJhLCBzcCwgc3Rrc2l6 ZSk7CisJKCpwcmludGZuKSAoIikgcmEgJWx4IHNwICVseCBzeiAlbGRcbiIsICh1bnNpZ25l ZCBsb25nKSByYSwKKwkJICAgICh1bnNpZ25lZCBsb25nKSBzcCwgKGxvbmcpIHN0a3NpemUp OwogCiAJaWYgKHJhKSB7CiAJCWlmIChwYyA9PSByYSAmJiBzdGtzaXplID09IDApCkBAIC00 MDMsOCArNDIzLDEyIEBACiAJc3RydWN0IHBjYiAqY3R4OwogCiAJaWYgKHRociA9PSBjdXJ0 aHJlYWQpIHsKLQkJc3AgPSAocmVnaXN0ZXJfdCkoaW50cHRyX3QpX19idWlsdGluX2ZyYW1l X2FkZHJlc3MoMCk7Ci0JCXJhID0gKHJlZ2lzdGVyX3QpKGludHB0cl90KV9fYnVpbHRpbl9y ZXR1cm5fYWRkcmVzcygwKTsKKyAgICAgICAgCV9fYXNtIF9fdm9sYXRpbGUoCisgICAgICAg ICAgICAgICAgICAgICAgICAgIm1vdmUgJTAsICRzcFxuIgorICAgICAgICAgICAgICAgICAg ICAgICAgIDogIj1yIiAoc3ApKTsKKyAgICAgICAgCV9fYXNtIF9fdm9sYXRpbGUoCisgICAg ICAgICAgICAgICAgICAgICAgICAgIm1vdmUgJTAsICRyYVxuIgorICAgICAgICAgICAgICAg ICAgICAgICAgIDogIj1yIiAocmEpKTsKIAogICAgICAgICAJX19hc20gX192b2xhdGlsZSgK IAkJCSJqYWwgOTlmXG4iCgo= --------------080200010505070802060807--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CA07B15.3080905>