Skip to content
Commit aaf02c54 authored by Jacob Bramley's avatar Jacob Bramley
Browse files

Fix initialisation order for ID register fields.

Making the constructor `constexpr` gives these "constant" rather than
"dynamic" initialisation, which guarantees that they'll be initialised
before any other dynamically-initialised static variables.

This makes it safe to make static variable initialisers dependent on the
result of `CPUFeatures::InferFromOS()` and similar functions.

Change-Id: Ib65e92273c7ac03d07e17cbe844b598ef3bc60ac
parent f3f5d246
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment