From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhW1e-0003ev-BL for qemu-devel@nongnu.org; Sun, 21 Sep 2008 16:59:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhW1a-0003ei-FI for qemu-devel@nongnu.org; Sun, 21 Sep 2008 16:59:25 -0400 Received: from [199.232.76.173] (port=38447 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhW1a-0003ef-AK for qemu-devel@nongnu.org; Sun, 21 Sep 2008 16:59:22 -0400 Received: from an-out-0708.google.com ([209.85.132.247]:20962) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KhW1Z-0006SY-Ql for qemu-devel@nongnu.org; Sun, 21 Sep 2008 16:59:21 -0400 Received: by an-out-0708.google.com with SMTP id d18so105536and.130 for ; Sun, 21 Sep 2008 13:59:20 -0700 (PDT) Message-ID: Date: Mon, 22 Sep 2008 00:59:19 +0400 From: "Igor Kovalenko" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_317_9134861.1222030759850" Subject: [Qemu-devel] [PATCH] sparc64 reverse cas and casx arguments Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_317_9134861.1222030759850 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! The following patch should fix a problem with sparc64 cas and casx emulation where value to be stored and value to be compared are passed in reverse order to helper function. This also fixes a problem with booting linux iso where kernel tries to clear memory bitmap bit with casx but fails to find any cleared bit later. Please apply. PS: if anyone can send me a patch for gdb to load and use System.map file while doing remote debugging that would be great :) -- Kind regards, Igor V. Kovalenko ------=_Part_317_9134861.1222030759850 Content-Type: application/octet-stream; name=qemu-cas-reverse-args-20080921.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fle5olrs0 Content-Disposition: attachment; filename=qemu-cas-reverse-args-20080921.patch SW5kZXg6IHRhcmdldC1zcGFyYy9vcF9oZWxwZXIuYwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB0YXJnZXQtc3Bh cmMvb3BfaGVscGVyLmMJKHJldmlzaW9uIDUyODMpCisrKyB0YXJnZXQtc3BhcmMvb3BfaGVscGVy LmMJKHdvcmtpbmcgY29weSkKQEAgLTIxOTQsOCArMjIyNiw4IEBACiAgICAgaGVscGVyX3N0X2Fz aShhZGRyLCB2YWwsIGFzaSwgc2l6ZSk7CiB9CiAKLXRhcmdldF91bG9uZyBoZWxwZXJfY2FzX2Fz aSh0YXJnZXRfdWxvbmcgYWRkciwgdGFyZ2V0X3Vsb25nIHZhbDEsCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgdGFyZ2V0X3Vsb25nIHZhbDIsIHVpbnQzMl90IGFzaSkKK3RhcmdldF91bG9u ZyBoZWxwZXJfY2FzX2FzaSh0YXJnZXRfdWxvbmcgYWRkciwgdGFyZ2V0X3Vsb25nIHZhbDIsCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0X3Vsb25nIHZhbDEsIHVpbnQzMl90IGFz aSkKIHsKICAgICB0YXJnZXRfdWxvbmcgcmV0OwogCkBAIC0yMjA3LDggKzIyMzksOCBAQAogICAg IHJldHVybiByZXQ7CiB9CiAKLXRhcmdldF91bG9uZyBoZWxwZXJfY2FzeF9hc2kodGFyZ2V0X3Vs b25nIGFkZHIsIHRhcmdldF91bG9uZyB2YWwxLAotICAgICAgICAgICAgICAgICAgICAgICAgICAg ICB0YXJnZXRfdWxvbmcgdmFsMiwgdWludDMyX3QgYXNpKQordGFyZ2V0X3Vsb25nIGhlbHBlcl9j YXN4X2FzaSh0YXJnZXRfdWxvbmcgYWRkciwgdGFyZ2V0X3Vsb25nIHZhbDIsCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIHRhcmdldF91bG9uZyB2YWwxLCB1aW50MzJfdCBhc2kpCiB7CiAg ICAgdGFyZ2V0X3Vsb25nIHJldDsKIAo= ------=_Part_317_9134861.1222030759850--