[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 01/14] xen/riscv: add _zicsr to CFLAGS
- To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Fri, 20 Jan 2023 15:29:37 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yge2g53HZcQLbddtW2AVNvLUAcxZmkR1/ztfQt9ZuOg=; b=eiqwMxEftGFvz5oLpB+gBrW9cT8/k/lVeKaYb67PrBXXJhlyObjXhTsLmqd7Gza3Y6cGpCAiboN7C2liRYd+17aGp1uOcR/5eFnidwAD8QL+bCGPe0GFoX/B7dW2Fjr9qLC+sBlAQbDoSMnfJkS22Hzt0secQr67l+56oUrScmpza04cAyc9P5llUXCpB5JBQVa2Q1ctzPUXuqRwSu8o0o3+RHQBGYGfhbIbUhEpepH+JuwzSaSKff/xEFpoAYMFN/mr8BLcg2gmuFnbcpbmDFkfZs2p7Ikz1KEF6fbNAFb+POoistxk7tD5ITvzxkr7E9w8piV6wd3w3uM61obQ7Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ltT6nw5LOUZUwhGYX8VH1BJJjgIz3UKrvVVoL+O3UBHm3per0ITsaaJkE6g5qyScf+nlO+m/xqEfQAzryx5nXHlA+AZa7mYA6Jlux0uGTeLqlPFL3i0XI9iHL13q6kqK1Tkww7QMXMpUnQAZhfqnvSMjg+rmtzfQHh5kyRPZwHdifdTWvvuzioucvdVFdncwfLXisbMppwcM9Uy8VyxQyH134an2m4L0SEFlK1cKVTTIap+flt0eFAFC3wNeEOjS5sY7sFA28b47EaXmySetjRDv1kRq9G51rEDyYTz8GCs9gsroK3D264BHAnyXRrpTk19OGV/fPTSez0N2kS746w==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gianluca Guida <gianluca@xxxxxxxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>
- Delivery-date: Fri, 20 Jan 2023 15:29:53 +0000
- Ironport-data: A9a23:M064uqm6TAdUMChNa+vaV9fo5gwZJ0RdPkR7XQ2eYbSJt1+Wr1Gzt xIfDTiCOKnfamb3edEnOt/l9UtT68PSn95iGQdlqiE1EiMWpZLJC+rCIxarNUt+DCFhoGFPt JxCN4aafKjYaleG+39B55C49SEUOZmgH+a6U6icf3grHmeIcQ954Tp7gek1n4V0ttawBgKJq LvartbWfVSowFaYCEpNg064gE4p7auaVA8w5ARkPqgS5geGzRH5MbpETU2PByqgKmVrNrbSq 9brlNmR4m7f9hExPdKp+p6TnpoiG+O60aCm0xK6aoD66vRwjnVaPpUTbZLwXXx/mTSR9+2d/ f0W3XCGpaXFCYWX8AgVe0Ew/yiTpsSq8pefSZS0mZT7I0Er7xIAahihZa07FdRwxwp5PY1B3 aMqES0kKRCcvOPo6aO4QMhTlP14COC+aevzulk4pd3YJdAPZMmZBo/stZpf1jp2gd1SF/HDY cZfcSBocBnLfxxIPBEQFY46m+CrwHL4dlW0qnrM/fZxvzeVkVE3ieezWDbWUoXiqcF9t0CUv G/ZuU/+BQkXLoe3wjuZ6HO8wOTImEsXXapDT+DnrqEz3TV/wEQ1OCwTcAe2ocLny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5B/p73nXbLudSmOUkonncesq+gWRsfbR/ GwMpRLBOKLFxqdJa9ZmwnlH5VCI3gXV8MY/t49RlKVu8rObpbns+TKGcyjWoYF0QxUJV8XLk FzIAQbfv8wlHxDckWI/STsZw==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHZLN/sD4BhGIHIWE+hX+U44mzDDK6nbkKA
- Thread-topic: [PATCH v1 01/14] xen/riscv: add _zicsr to CFLAGS
On 20/01/2023 2:59 pm, Oleksii Kurochko wrote:
> Work with some registers requires csr command which is part of
> Zicsr.
>
> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> ---
> xen/arch/riscv/arch.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/riscv/arch.mk b/xen/arch/riscv/arch.mk
> index 012dc677c3..95b41d9f3e 100644
> --- a/xen/arch/riscv/arch.mk
> +++ b/xen/arch/riscv/arch.mk
> @@ -10,7 +10,7 @@ riscv-march-$(CONFIG_RISCV_ISA_C) := $(riscv-march-y)c
> # into the upper half _or_ the lower half of the address space.
> # -mcmodel=medlow would force Xen into the lower half.
>
> -CFLAGS += -march=$(riscv-march-y) -mstrict-align -mcmodel=medany
> +CFLAGS += -march=$(riscv-march-y)_zicsr -mstrict-align -mcmodel=medany
Should we just go straight for G, rather than bumping it along every
time we make a tweak?
~Andrew
|