diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2021-03-12 15:16:07 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-06-17 22:01:26 +0200 |
commit | d8fb32f4790f2a286e58db8548016378ac35fc6f (patch) | |
tree | 050c2708dc80d0d61fb6d247a487d02e3c2b6f4f /arch/um/Kconfig | |
parent | 386093c68ba3e8bcfe7f46deba901e0e80713c29 (diff) |
um: Add support for host CPU flags and alignment
1. Reflect host cpu flags into the UML instance so they can
be used to select the correct implementations for xor, crypto, etc.
2. Reflect host cache alignment into UML instance. This is
important when running 32 bit on a 64 bit host as 32 bit by
default aligns to 32 while the actual alignment should be 64.
Ditto for some Xeons which align at 128.
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/Kconfig')
-rw-r--r-- | arch/um/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/um/Kconfig b/arch/um/Kconfig index fe6d898aeb85..0561b73cfd9a 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -76,6 +76,9 @@ config NR_CPUS range 1 1 default 1 +config ARCH_HAS_CACHE_LINE_SIZE + def_bool y + source "arch/$(HEADER_ARCH)/um/Kconfig" config MAY_HAVE_RUNTIME_DEPS |