linux-user: Adjust comment to reflect the code.
authorWarner Losh <imp@bsdimp.com>
Fri, 7 Jun 2024 03:57:42 +0000 (21:57 -0600)
committerWarner Losh <imp@bsdimp.com>
Sun, 9 Jun 2024 16:30:11 +0000 (10:30 -0600)
If the user didn't specify reserved_va, there's an else for 64-bit host
32-bit (or fewer) target to reserve 32-bits of address space. Update the
comments to reflect this, and rejustify comment to 80 columns.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/main.c

index 94e4c47f05295701831a2b508a3dfe0284b400af..94c99a1366fa5dd26275507eda1f1c2ce8ff41a0 100644 (file)
@@ -814,10 +814,10 @@ int main(int argc, char **argv, char **envp)
     thread_cpu = cpu;
 
     /*
-     * Reserving too much vm space via mmap can run into problems
-     * with rlimits, oom due to page table creation, etc.  We will
-     * still try it, if directed by the command-line option, but
-     * not by default.
+     * Reserving too much vm space via mmap can run into problems with rlimits,
+     * oom due to page table creation, etc.  We will still try it, if directed
+     * by the command-line option, but not by default. Unless we're running a
+     * target address space of 32 or fewer bits on a host with 64 bits.
      */
     max_reserved_va = MAX_RESERVED_VA(cpu);
     if (reserved_va != 0) {