{"action":"created","issue":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/963","repository_url":"https://api.github.com/repos/unicorn-engine/unicorn","labels_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/963/comments","events_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/963/events","html_url":"https://github.com/unicorn-engine/unicorn/issues/963","id":322247812,"node_id":"MDU6SXNzdWUzMjIyNDc4MTI=","number":963,"title":"ARM64 Emulation hangs","user":{"login":"bkerler","id":6317772,"node_id":"MDQ6VXNlcjYzMTc3NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6317772?v=4","gravatar_id":"","url":"https://api.github.com/users/bkerler","html_url":"https://github.com/bkerler","followers_url":"https://api.github.com/users/bkerler/followers","following_url":"https://api.github.com/users/bkerler/following{/other_user}","gists_url":"https://api.github.com/users/bkerler/gists{/gist_id}","starred_url":"https://api.github.com/users/bkerler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkerler/subscriptions","organizations_url":"https://api.github.com/users/bkerler/orgs","repos_url":"https://api.github.com/users/bkerler/repos","events_url":"https://api.github.com/users/bkerler/events{/privacy}","received_events_url":"https://api.github.com/users/bkerler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-11T10:28:17Z","updated_at":"2018-07-27T06:04:51Z","closed_at":"2018-07-27T05:10:01Z","author_association":"NONE","body":"Trying to emulate the instruction b.eq on arm64le using python3, unicorn just hangs.\r\n\r\nExample code:\r\n\r\n```\r\nfrom keystone import *\r\nfrom unicorn import *\r\n\r\nasm = '''\r\ncmp w0, 0x22\r\nb.eq hh\r\nldr w0, [x1]\r\nret\r\nhh: str w2, [x1]\r\n    ret\r\n'''\r\ncode = b\"\\x1F\\x88\\x00\\x71\\x60\\x00\\x00\\x54\\x20\\x00\\x40\\xB9\\xC0\\x03\\x5F\\xD6\\x22\\x00\\x00\\xB9\\xC0\\x03\\x5F\\xD6\"\r\naddr = 0\r\n\r\nuc = Uc(UC_ARCH_ARM64, UC_MODE_ARM)\r\nks = Ks(KS_ARCH_ARM64, KS_MODE_LITTLE_ENDIAN)\r\nuc.mem_map(addr, 2 * 1024 * 1024)\r\nuc.mem_write(addr, code)\r\nuc.emu_start(addr, addr + len(code))\r\nprint(\"Done.\")\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/comments/408320719","html_url":"https://github.com/unicorn-engine/unicorn/issues/963#issuecomment-408320719","issue_url":"https://api.github.com/repos/unicorn-engine/unicorn/issues/963","id":408320719,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODMyMDcxOQ==","user":{"login":"bkerler","id":6317772,"node_id":"MDQ6VXNlcjYzMTc3NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6317772?v=4","gravatar_id":"","url":"https://api.github.com/users/bkerler","html_url":"https://github.com/bkerler","followers_url":"https://api.github.com/users/bkerler/followers","following_url":"https://api.github.com/users/bkerler/following{/other_user}","gists_url":"https://api.github.com/users/bkerler/gists{/gist_id}","starred_url":"https://api.github.com/users/bkerler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkerler/subscriptions","organizations_url":"https://api.github.com/users/bkerler/orgs","repos_url":"https://api.github.com/users/bkerler/repos","events_url":"https://api.github.com/users/bkerler/events{/privacy}","received_events_url":"https://api.github.com/users/bkerler/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T06:04:51Z","updated_at":"2018-07-27T06:04:51Z","author_association":"NONE","body":"Ok. But it hangs on stepping on b.eq, even if I remove Ret."}}
{"actor":{"display_login":"bkerler"}}