Added CPU revision implementation for ARM64

Change-Id: I42e6c76715dfd44fa87c8bbd56b8903f76cef87c
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1655468
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Istvan Romai 2019-06-12 11:03:07 +02:00 committed by Commit Bot
parent 2fb8f98d67
commit e163efb372

View File

@ -158,9 +158,10 @@ uint32_t SystemSnapshotWin::CPURevision() const {
uint8_t adjusted_model = model + (extended_model << 4);
return (adjusted_family << 16) | (adjusted_model << 8) | stepping;
#elif defined(ARCH_CPU_ARM64)
// TODO(jperaza): do this. https://crashpad.chromium.org/bug/30
// This is the same as SystemSnapshotLinux::CPURevision.
return 0;
SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
return system_info.wProcessorRevision;
#else
#error Unsupported Windows Arch
#endif