{"action":"created","comment":{"url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/comments/201252157","pull_request_review_id":135715237,"id":201252157,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTI1MjE1Nw==","diff_hunk":"@@ -39,15 +42,41 @@ class ARM_Dynarmic final : public ARM_Interface {\n     void LoadContext(const ThreadContext& ctx) override;\n \n     void PrepareReschedule() override;\n+    void ClearExclusiveState() override;\n \n     void ClearInstructionCache() override;\n     void PageTableChanged() override;\n \n private:\n+    std::unique_ptr<Dynarmic::A64::Jit> MakeJit();\n+\n     friend class ARM_Dynarmic_Callbacks;\n     std::unique_ptr<ARM_Dynarmic_Callbacks> cb;\n     std::unique_ptr<Dynarmic::A64::Jit> jit;\n     ARM_Unicorn inner_unicorn;\n \n+    size_t core_index;\n+    std::shared_ptr<DynarmicExclusiveMonitor> exclusive_monitor;\n+\n     Memory::PageTable* current_page_table = nullptr;\n };\n+\n+class DynarmicExclusiveMonitor final : public ExclusiveMonitor {\n+public:\n+    DynarmicExclusiveMonitor(size_t core_count);","path":"src/core/arm/dynarmic/arm_dynarmic.h","position":45,"original_position":45,"commit_id":"5aa84abd75e1c1408a62c3732cdcd8ae4de5d094","original_commit_id":"5aa84abd75e1c1408a62c3732cdcd8ae4de5d094","user":{"login":"lioncash","id":712067,"node_id":"MDQ6VXNlcjcxMjA2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/712067?v=4","gravatar_id":"","url":"https://api.github.com/users/lioncash","html_url":"https://github.com/lioncash","followers_url":"https://api.github.com/users/lioncash/followers","following_url":"https://api.github.com/users/lioncash/following{/other_user}","gists_url":"https://api.github.com/users/lioncash/gists{/gist_id}","starred_url":"https://api.github.com/users/lioncash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lioncash/subscriptions","organizations_url":"https://api.github.com/users/lioncash/orgs","repos_url":"https://api.github.com/users/lioncash/repos","events_url":"https://api.github.com/users/lioncash/events{/privacy}","received_events_url":"https://api.github.com/users/lioncash/received_events","type":"User","site_admin":false},"body":"```cpp\r\nexplicit DynarmicExclusiveMonitor(size_t core_count);\r\n```","created_at":"2018-07-10T08:13:30Z","updated_at":"2018-07-10T08:17:39Z","html_url":"https://github.com/yuzu-emu/yuzu/pull/638#discussion_r201252157","pull_request_url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/comments/201252157"},"html":{"href":"https://github.com/yuzu-emu/yuzu/pull/638#discussion_r201252157"},"pull_request":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638"}}},"pull_request":{"url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638","id":199916415,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTE2NDE1","html_url":"https://github.com/yuzu-emu/yuzu/pull/638","diff_url":"https://github.com/yuzu-emu/yuzu/pull/638.diff","patch_url":"https://github.com/yuzu-emu/yuzu/pull/638.patch","issue_url":"https://api.github.com/repos/yuzu-emu/yuzu/issues/638","number":638,"state":"open","locked":false,"title":"Implement exclusive monitor","user":{"login":"MerryMage","id":8682882,"node_id":"MDQ6VXNlcjg2ODI4ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/8682882?v=4","gravatar_id":"","url":"https://api.github.com/users/MerryMage","html_url":"https://github.com/MerryMage","followers_url":"https://api.github.com/users/MerryMage/followers","following_url":"https://api.github.com/users/MerryMage/following{/other_user}","gists_url":"https://api.github.com/users/MerryMage/gists{/gist_id}","starred_url":"https://api.github.com/users/MerryMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MerryMage/subscriptions","organizations_url":"https://api.github.com/users/MerryMage/orgs","repos_url":"https://api.github.com/users/MerryMage/repos","events_url":"https://api.github.com/users/MerryMage/events{/privacy}","received_events_url":"https://api.github.com/users/MerryMage/received_events","type":"User","site_admin":false},"body":"Global exclusive monitor across cores.\r\n\r\nNOTE: Unicorn support is nonexistent. ","created_at":"2018-07-07T22:37:42Z","updated_at":"2018-07-10T08:17:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e38fb8be72ac1762d58c009247a738b3181e4d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638/commits","review_comments_url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638/comments","review_comment_url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuzu-emu/yuzu/issues/638/comments","statuses_url":"https://api.github.com/repos/yuzu-emu/yuzu/statuses/5aa84abd75e1c1408a62c3732cdcd8ae4de5d094","head":{"label":"MerryMage:mp","ref":"mp","sha":"5aa84abd75e1c1408a62c3732cdcd8ae4de5d094","user":{"login":"MerryMage","id":8682882,"node_id":"MDQ6VXNlcjg2ODI4ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/8682882?v=4","gravatar_id":"","url":"https://api.github.com/users/MerryMage","html_url":"https://github.com/MerryMage","followers_url":"https://api.github.com/users/MerryMage/followers","following_url":"https://api.github.com/users/MerryMage/following{/other_user}","gists_url":"https://api.github.com/users/MerryMage/gists{/gist_id}","starred_url":"https://api.github.com/users/MerryMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MerryMage/subscriptions","organizations_url":"https://api.github.com/users/MerryMage/orgs","repos_url":"https://api.github.com/users/MerryMage/repos","events_url":"https://api.github.com/users/MerryMage/events{/privacy}","received_events_url":"https://api.github.com/users/MerryMage/received_events","type":"User","site_admin":false},"repo":{"id":117719608,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc3MTk2MDg=","name":"yuzu","full_name":"MerryMage/yuzu","owner":{"login":"MerryMage","id":8682882,"node_id":"MDQ6VXNlcjg2ODI4ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/8682882?v=4","gravatar_id":"","url":"https://api.github.com/users/MerryMage","html_url":"https://github.com/MerryMage","followers_url":"https://api.github.com/users/MerryMage/followers","following_url":"https://api.github.com/users/MerryMage/following{/other_user}","gists_url":"https://api.github.com/users/MerryMage/gists{/gist_id}","starred_url":"https://api.github.com/users/MerryMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MerryMage/subscriptions","organizations_url":"https://api.github.com/users/MerryMage/orgs","repos_url":"https://api.github.com/users/MerryMage/repos","events_url":"https://api.github.com/users/MerryMage/events{/privacy}","received_events_url":"https://api.github.com/users/MerryMage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MerryMage/yuzu","description":"Nintendo Switch Emulator","fork":true,"url":"https://api.github.com/repos/MerryMage/yuzu","forks_url":"https://api.github.com/repos/MerryMage/yuzu/forks","keys_url":"https://api.github.com/repos/MerryMage/yuzu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MerryMage/yuzu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MerryMage/yuzu/teams","hooks_url":"https://api.github.com/repos/MerryMage/yuzu/hooks","issue_events_url":"https://api.github.com/repos/MerryMage/yuzu/issues/events{/number}","events_url":"https://api.github.com/repos/MerryMage/yuzu/events","assignees_url":"https://api.github.com/repos/MerryMage/yuzu/assignees{/user}","branches_url":"https://api.github.com/repos/MerryMage/yuzu/branches{/branch}","tags_url":"https://api.github.com/repos/MerryMage/yuzu/tags","blobs_url":"https://api.github.com/repos/MerryMage/yuzu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MerryMage/yuzu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MerryMage/yuzu/git/refs{/sha}","trees_url":"https://api.github.com/repos/MerryMage/yuzu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MerryMage/yuzu/statuses/{sha}","languages_url":"https://api.github.com/repos/MerryMage/yuzu/languages","stargazers_url":"https://api.github.com/repos/MerryMage/yuzu/stargazers","contributors_url":"https://api.github.com/repos/MerryMage/yuzu/contributors","subscribers_url":"https://api.github.com/repos/MerryMage/yuzu/subscribers","subscription_url":"https://api.github.com/repos/MerryMage/yuzu/subscription","commits_url":"https://api.github.com/repos/MerryMage/yuzu/commits{/sha}","git_commits_url":"https://api.github.com/repos/MerryMage/yuzu/git/commits{/sha}","comments_url":"https://api.github.com/repos/MerryMage/yuzu/comments{/number}","issue_comment_url":"https://api.github.com/repos/MerryMage/yuzu/issues/comments{/number}","contents_url":"https://api.github.com/repos/MerryMage/yuzu/contents/{+path}","compare_url":"https://api.github.com/repos/MerryMage/yuzu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MerryMage/yuzu/merges","archive_url":"https://api.github.com/repos/MerryMage/yuzu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MerryMage/yuzu/downloads","issues_url":"https://api.github.com/repos/MerryMage/yuzu/issues{/number}","pulls_url":"https://api.github.com/repos/MerryMage/yuzu/pulls{/number}","milestones_url":"https://api.github.com/repos/MerryMage/yuzu/milestones{/number}","notifications_url":"https://api.github.com/repos/MerryMage/yuzu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MerryMage/yuzu/labels{/name}","releases_url":"https://api.github.com/repos/MerryMage/yuzu/releases{/id}","deployments_url":"https://api.github.com/repos/MerryMage/yuzu/deployments","created_at":"2018-01-16T17:52:56Z","updated_at":"2018-01-16T17:52:58Z","pushed_at":"2018-07-08T00:52:11Z","git_url":"git://github.com/MerryMage/yuzu.git","ssh_url":"git@github.com:MerryMage/yuzu.git","clone_url":"https://github.com/MerryMage/yuzu.git","svn_url":"https://github.com/MerryMage/yuzu","homepage":"","size":19125,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yuzu-emu:master","ref":"master","sha":"3417f46dd5a40a67204d5491d143bd6792e1e9fb","user":{"login":"yuzu-emu","id":35075882,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDc1ODgy","avatar_url":"https://avatars1.githubusercontent.com/u/35075882?v=4","gravatar_id":"","url":"https://api.github.com/users/yuzu-emu","html_url":"https://github.com/yuzu-emu","followers_url":"https://api.github.com/users/yuzu-emu/followers","following_url":"https://api.github.com/users/yuzu-emu/following{/other_user}","gists_url":"https://api.github.com/users/yuzu-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/yuzu-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuzu-emu/subscriptions","organizations_url":"https://api.github.com/users/yuzu-emu/orgs","repos_url":"https://api.github.com/users/yuzu-emu/repos","events_url":"https://api.github.com/users/yuzu-emu/events{/privacy}","received_events_url":"https://api.github.com/users/yuzu-emu/received_events","type":"Organization","site_admin":false},"repo":{"id":116167731,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxNjc3MzE=","name":"yuzu","full_name":"yuzu-emu/yuzu","owner":{"login":"yuzu-emu","id":35075882,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDc1ODgy","avatar_url":"https://avatars1.githubusercontent.com/u/35075882?v=4","gravatar_id":"","url":"https://api.github.com/users/yuzu-emu","html_url":"https://github.com/yuzu-emu","followers_url":"https://api.github.com/users/yuzu-emu/followers","following_url":"https://api.github.com/users/yuzu-emu/following{/other_user}","gists_url":"https://api.github.com/users/yuzu-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/yuzu-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuzu-emu/subscriptions","organizations_url":"https://api.github.com/users/yuzu-emu/orgs","repos_url":"https://api.github.com/users/yuzu-emu/repos","events_url":"https://api.github.com/users/yuzu-emu/events{/privacy}","received_events_url":"https://api.github.com/users/yuzu-emu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yuzu-emu/yuzu","description":"Nintendo Switch Emulator","fork":false,"url":"https://api.github.com/repos/yuzu-emu/yuzu","forks_url":"https://api.github.com/repos/yuzu-emu/yuzu/forks","keys_url":"https://api.github.com/repos/yuzu-emu/yuzu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuzu-emu/yuzu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuzu-emu/yuzu/teams","hooks_url":"https://api.github.com/repos/yuzu-emu/yuzu/hooks","issue_events_url":"https://api.github.com/repos/yuzu-emu/yuzu/issues/events{/number}","events_url":"https://api.github.com/repos/yuzu-emu/yuzu/events","assignees_url":"https://api.github.com/repos/yuzu-emu/yuzu/assignees{/user}","branches_url":"https://api.github.com/repos/yuzu-emu/yuzu/branches{/branch}","tags_url":"https://api.github.com/repos/yuzu-emu/yuzu/tags","blobs_url":"https://api.github.com/repos/yuzu-emu/yuzu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuzu-emu/yuzu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuzu-emu/yuzu/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuzu-emu/yuzu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuzu-emu/yuzu/statuses/{sha}","languages_url":"https://api.github.com/repos/yuzu-emu/yuzu/languages","stargazers_url":"https://api.github.com/repos/yuzu-emu/yuzu/stargazers","contributors_url":"https://api.github.com/repos/yuzu-emu/yuzu/contributors","subscribers_url":"https://api.github.com/repos/yuzu-emu/yuzu/subscribers","subscription_url":"https://api.github.com/repos/yuzu-emu/yuzu/subscription","commits_url":"https://api.github.com/repos/yuzu-emu/yuzu/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuzu-emu/yuzu/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuzu-emu/yuzu/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuzu-emu/yuzu/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuzu-emu/yuzu/contents/{+path}","compare_url":"https://api.github.com/repos/yuzu-emu/yuzu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuzu-emu/yuzu/merges","archive_url":"https://api.github.com/repos/yuzu-emu/yuzu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuzu-emu/yuzu/downloads","issues_url":"https://api.github.com/repos/yuzu-emu/yuzu/issues{/number}","pulls_url":"https://api.github.com/repos/yuzu-emu/yuzu/pulls{/number}","milestones_url":"https://api.github.com/repos/yuzu-emu/yuzu/milestones{/number}","notifications_url":"https://api.github.com/repos/yuzu-emu/yuzu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuzu-emu/yuzu/labels{/name}","releases_url":"https://api.github.com/repos/yuzu-emu/yuzu/releases{/id}","deployments_url":"https://api.github.com/repos/yuzu-emu/yuzu/deployments","created_at":"2018-01-03T18:13:57Z","updated_at":"2018-07-10T00:57:41Z","pushed_at":"2018-07-10T04:11:43Z","git_url":"git://github.com/yuzu-emu/yuzu.git","ssh_url":"git@github.com:yuzu-emu/yuzu.git","clone_url":"https://github.com/yuzu-emu/yuzu.git","svn_url":"https://github.com/yuzu-emu/yuzu","homepage":"","size":19150,"stargazers_count":4680,"watchers_count":4680,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":233,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":233,"open_issues":28,"watchers":4680,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638"},"html":{"href":"https://github.com/yuzu-emu/yuzu/pull/638"},"issue":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/issues/638"},"comments":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/issues/638/comments"},"review_comments":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638/comments"},"review_comment":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/pulls/638/commits"},"statuses":{"href":"https://api.github.com/repos/yuzu-emu/yuzu/statuses/5aa84abd75e1c1408a62c3732cdcd8ae4de5d094"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lioncash"}}