[PATCH] D43488: [mips][lld] Spectre variant two mitigation for MIPSR2

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 11:21:54 PST 2018


ruiu added a comment.

LGTM



================
Comment at: ELF/Arch/Mips.cpp:334
 
+  unsigned JrInst =
+      isMipsR6() ? (Config->ZHazardplt ? 0x03200409 : 0x03200009)
----------------
It's better to use uint32_t if it is intended to be unsigned 32-bit integer.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43488





More information about the llvm-commits mailing list