Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringify ArmCPUDetect.cpp. #455

Merged
merged 2 commits into from Jun 3, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Jun 3, 2014

Obsoletes PR #447

@delroth There we go :)

@Sonicadvance1 Would you want to test it on Android to make sure everything still checks out? It should, but I'd rather have the word of the person who works on ARM the most :P

If a CPU string was incapable of being found we would return a null pointer, which would crash with strncpy.
Also if we couldn't get a CPU implementer we would call free() to a null pointer.
In addition, detect 64bit ARM running.
@Sonicadvance1
Copy link
Contributor

Works Flawlessly.
LGTM.

char *cpu_string = nullptr;
const std::string marker = "Hardware\t: ";
std::string cpu_string = "Unknown";

// Count the number of processor lines in /proc/cpuinfo

This comment was marked as off-topic.

Sonicadvance1 added a commit that referenced this pull request Jun 3, 2014
@Sonicadvance1 Sonicadvance1 merged commit 3a06907 into dolphin-emu:master Jun 3, 2014
@lioncash lioncash deleted the arm-cpudetect-fix branch June 3, 2014 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants