|
From: | Richard Henderson |
Subject: | Re: [PATCH v5 2/9] target/riscv: introduce riscv_cpu_cfg() |
Date: | Thu, 16 Feb 2023 09:12:18 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/16/23 06:21, Daniel Henrique Barboza wrote:
+static inline RISCVCPUConfig riscv_cpu_cfg(CPURISCVState *env) +{ + return env_archcpu(env)->cfg; +}
This structure is 144 bytes. I don't think you want to be copying it around like that. Better to return a const pointer.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |