Re: [RFC PATCH v1 06/43] tcg: Introduce tcg-global-mappings

2024-11-22 Thread Richard Henderson
On 11/20/24 19:49, Anton Johansson wrote: Adds a cpu_mapping struct to describe, in a declarative fashion, the mapping between fields in a struct, and a corresponding TCG global. As such, tcg_global_mem_new() can be automatically called given an array of cpu_mappings. This change is not limited

[RFC PATCH v1 06/43] tcg: Introduce tcg-global-mappings

2024-11-20 Thread Anton Johansson via
Adds a cpu_mapping struct to describe, in a declarative fashion, the mapping between fields in a struct, and a corresponding TCG global. As such, tcg_global_mem_new() can be automatically called given an array of cpu_mappings. This change is not limited to helper-to-tcg, but will be required in f