From 772ca27a97239208d5eafb795c7ec92863d671ee Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 24 Sep 2019 14:28:29 -0700 Subject: misc: Added line wrapping functionality for Sim-Object desc Descriptions were previously printed on one line, unless explicitly broken when writing the description of the Sim-Object. In this commit, line wrapping is enabled when printing these descriptions. Developers, when writing the Sim-Object descriptions, may now over multiple lines with triple double-quotes and still have the description output correctly when viewing the Sim-Objects within the CLI. E.g.: X86System previously had the following load_addr_mask component which was output as: load_addr_mask default: 18446744073709551615 desc: Address to mask loading binaries with, if 0, system \ auto-calculates the mask to be the most restrictive, otherwise it obeys a \ custom mask. This was defined by the developer via: load_addr_mask = Param.UInt64(0xffffffffffffffff, "Address to mask loading binaries with, if 0, system " "auto-calculates the mask to be the most restrictive, " "otherwise it obeys a custom mask.") This is now displayed as: load_addr_mask default: 18446744073709551615 desc: Address to mask loading binaries with, if 0, system auto-calculates the mask to be the most restrictive, otherwise it obeys a custom mask. JiraID: Gem5-57 Built: Linux (GCC) Tested: Ran quick tests for X86, ARM, and RISC-V Change-Id: If012304e50af60f6ba10c1fa2b44da8bac1c09cf Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21179 Tested-by: kokoro Reviewed-by: Andreas Sandberg Reviewed-by: Daniel Carvalho Maintainer: Andreas Sandberg --- src/python/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/python/SConscript') diff --git a/src/python/SConscript b/src/python/SConscript index 758ab3df9..8264e380b 100644 --- a/src/python/SConscript +++ b/src/python/SConscript @@ -61,6 +61,7 @@ PySource('m5.util', 'm5/util/sorteddict.py') PySource('m5.util', 'm5/util/terminal.py') PySource('m5.util', 'm5/util/pybind.py') PySource('m5.util', 'm5/util/fdthelper.py') +PySource('m5.util', 'm5/util/terminal_formatter.py') PySource('m5.internal', 'm5/internal/__init__.py') PySource('m5.internal', 'm5/internal/params.py') -- cgit v1.2.3