From patchwork Fri Feb 9 15:29:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 771327 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp912879wre; Fri, 9 Feb 2024 07:30:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUX9aF6jueyIyUi//D1Vkmjm6qgdRUDbG2BjxuHouvdD9o/znn2ICzfDMGqBO681mBWkW6dwN6L/vsUcuZhakl2 X-Google-Smtp-Source: AGHT+IEz+FlBojGBU4wZk7yd2JNhhLD7fZIK5CYXgLPZtsLJclz5Vr8Q5yLqsim402S2CNWsMErS X-Received: by 2002:a05:622a:30e:b0:42c:3928:86f3 with SMTP id q14-20020a05622a030e00b0042c392886f3mr2208623qtw.49.1707492648695; Fri, 09 Feb 2024 07:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707492648; cv=none; d=google.com; s=arc-20160816; b=DXTogwvOXDQhxZy1eEXOBGJV6rJ97vOtTmncZwoV72E9u/K8yEUAA8CR3NvXmnSAxo QZ334WawBeFRlHh895Amjs8yZ7t/bAZz18U3RwJmsYOjU+aUpE+J8+iaZ+fgieg6kGNh X78T/ZbEfwu1ifa1FIcPygmfCYsXOU4CwYuhqL0ss+QZ8gu2faf/0S0UwaLGWDxejeuB AoapHADzYm9KjgAyNhrEjbXogURbf3OcLFPemGw/xO3TAno8nmqv2Lf5uPt8E6H3abAl 8QrJytvLGwywg5pgc1xFkJ2Nd+Y81kzypgvyAGSNqHtNBGykxasDrSZjYg8seiVgHFIu 38sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=0WR2qGC9tSUOfxj3WJAdR9JhzphmVmquXXP4yEufYvE=; fh=fW3/m1zv+HKsCW879zKZXw07+MArdV7MSkU8/RPPt+Y=; b=N6i/GSRKw4EDYMcwrNJ6bQpp8WPLeHrHlnYV3U9GlYG/jFqXsFF0fEJIKT6n/BeciT k1gTqXN/uo1FRlcUgTYCA1T0Rvx89012VfuFYxZOhvQewTOyJHqbCSV35hzMIqFmmk4I 51im2ARmCYbTAjiIlQTJvCHNtDt18gCp51GLQNbw3xZqbhhDoKLADphh2LH2YrZmRxYt 4hHuzoUWbOkIp6USjQ5cgeR7BlZM143fGDwXHsj5Z1iAqECfMtLh5YqPDf/ZrZjmNG4F 3fV6fDlx4ixxHHQCEqGQYNJpQOtFciT/KFZ1KM7wmUAmc+RCCiibBd4hR1iHNkZJYU0p dnsA==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A7Vem6a0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXLRI6VTO6s/qewAYScUoSIw0QXYRT12FjWq+8jS7SZ01PkRT18Jg8OvoTvU5ZRXLEpq+RK+soIGGxhVwHYiygk Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z6-20020ac87f86000000b0042c0d9329ebsi1995944qtj.528.2024.02.09.07.30.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2024 07:30:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A7Vem6a0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYSpB-0007yX-FV; Fri, 09 Feb 2024 10:29:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYSp8-0007y7-Oe for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:29:55 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYSp5-0007JZ-Oh for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:29:54 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-410708db221so4994325e9.0 for ; Fri, 09 Feb 2024 07:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707492589; x=1708097389; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0WR2qGC9tSUOfxj3WJAdR9JhzphmVmquXXP4yEufYvE=; b=A7Vem6a0TjG3ucKbANg4lMiKfRTec7dD9Bxaagnbl3s9Bg9zudBdTNlBPWHUV+smzn xcu/bJcSyfYU+Gz4b18h8qo7SuYuPteXwFdbhTWrRNpcj+xhdTKUrJir/FYfzHHydRsF ruOge7I0MZ1G73xZzy+/mOuVzcsBdAxVGKMQCh6NolBAfPaxd7n+3e/6lP16Kdzp3csV fyZrJ9+pkS9AfTMhS47o4eLEPzv08eP+4lqj/1JzyPc2kRtN1tn9V4JCkebBf49/EQwk +TLxSEtro4DwO5kdjj3watDjfTG4Lkf5Zdbgjo0BM6wPSeS4gbfi/3AfS2/ER/Yx5qqV qIFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707492589; x=1708097389; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0WR2qGC9tSUOfxj3WJAdR9JhzphmVmquXXP4yEufYvE=; b=ikmL1LvHxF2JzOf8c4JOqU/o8tVaYLUzkABeqdJeNZgpABIaygLMLOj+ZsUiI3Z4o8 /atTwFfeZBoEfWKu0zNgSpnA5QJEcQ76+rXl3/SFf/dWW6dYEof9qsG9q9husoAzgORb Yfhmmb/zEjgE11PPe+L17W4GFKzL5Y1ccLDtdnhXCFtt4LH8UBOrBEZzTPca1yAXPXrx XcTA1saId52vO+XAP9UByqKKffSgrykS0NM8/Kxfj+/qdLDjIgXHrkret2Uzv0pl7m/R R5j8MZBc8Q4f935OpXaKuPu6Ho65G2urzt9Bt+6XgPbdI5EdB4Dxd50BFrkz6nUWapEW 1dfA== X-Gm-Message-State: AOJu0YxCpM4PXntSJUspbIKSEJJMB33yHdmxpDCa6KSkBqJ0OELujzfY cgwY8HpG98+wVYleQmpnXVBPB9dge6AqCbtfTF+DNJ3pIJYLNsxjtjl4z4+1N73npLnrRr66mf9 z X-Received: by 2002:a05:600c:5741:b0:410:212b:c760 with SMTP id jw1-20020a05600c574100b00410212bc760mr1555018wmb.19.1707492589459; Fri, 09 Feb 2024 07:29:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVjDpMcWWH15bdsb0HnGK3dLTSw9tXjkeFoYw6hIwVVqiP6OAA9ax+FOUUIxxnJGL09LtXgkLlfZvDDYEvP1b7BaxXlL5J0Ou7to7Z2JOAjIjV4H11Ow232qxc0bsAQ2Q/c7H7IVjZjHmU7yKO1cA4Y7H6KqIuwTsMZwaGhAJPQVTelza/agTkRZFoM2/q+XhCLPRmWxIlV5N7ITPJnJj+CoYr3CiC0UMEotPUtTJXFreTuW/we4+tkAJnvNRIG1ZNgXJBRe8F3EqQ2kmmI184yiSHYBw/dvJgzu/xsVp1z5997qByLBvRkuTPfQRmLvPPmou/KEyiF2qhxzYnKUs1k1GAgfoMbMrb8A1ZHdZtGNH5F0wI0suz9Dibj5Q3BfkSzCamaHmAZOAj40eWrFjgoogKkc/Gkq73iac6sOSz9j7ut+pUZf/T8LxbTC+WIjbL9+4IoXHByk3qmV/7PPiHOyM9rcMwcWV/4nWl8BTRbSIxTmfR6S705y15jMZcrdDwK81j/xJDMN3AMBZCANihZFRuLNdIXgGPRfk8XbP2KbJZgXoScQg9UpWq+r83KIDrKS2ChizV9dm47ZBNsg2pCzcmyPXxz5goIREp0JEoPDwbIVRXP0PtJE5oAUrYBm8qHCuOjLVdyddeayZ8bE59yk4oNvc1l0lF1Lg1L7rnGTDkWDkmr6Q6jIml6AMwSTdvfP9+gkozZ8RIUb8AqupbkLY/P6xIAsw== Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id g19-20020a05600c4ed300b004103e15441dsm1046603wmq.6.2024.02.09.07.29.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Feb 2024 07:29:49 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Amir Gonnen , Paolo Bonzini , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Wainer dos Santos Moschetta , Stefan Hajnoczi , Luc Michel , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Markus Armbruster , Bernhard Beschow , Marcel Apfelbaum , Damien Hedde , Eduardo Habkost , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Marc?= =?utf-8?q?-Andr=C3=A9_Lureau?= , =?utf-8?q?Ale?= =?utf-8?q?x_Benn=C3=A9e?= , Richard Henderson , Thomas Huth , "Edgar E . Iglesias" , Eric Blake , Gustavo Romero , Yanan Wang , Beraldo Leal , Zhao Liu , Alexander Graf Subject: [PATCH v2 0/1] target: New binary to prototype heterogeneous machines Date: Fri, 9 Feb 2024 16:29:44 +0100 Message-ID: <20240209152945.25727-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Almost 2 years later we got hundreds of cleanups patches merged, so we can get this patch in. Building the 'any' target has to be explictly requested in ./configure target-list argument. This binary will be use to rework QEMU startup code, paving the way toward dynamic machines. It might also allow experimenting with multiple TCG target frontends and possibly prototyping concurrent HW/SW accelerations. The corresponding CI jobs takes <5min: https://gitlab.com/philmd/qemu/-/jobs/6138476547 Duration: 4 minutes 42 seconds v1: https://lore.kernel.org/qemu-devel/20220215002658.60678-1-f4bug@amsat.org/ Philippe Mathieu-Daudé (1): target: Add system emulation aiming to target any architecture configs/devices/any-softmmu/default.mak | 9 +++++++++ configs/targets/any-softmmu.mak | 3 +++ meson.build | 6 ++++-- qapi/machine.json | 2 +- include/sysemu/arch_init.h | 1 + target/any/cpu-param.h | 13 +++++++++++++ target/any/cpu-qom.h | 12 ++++++++++++ target/any/cpu.h | 24 ++++++++++++++++++++++++ .gitlab-ci.d/buildtest.yml | 20 ++++++++++++++++++++ hw/any/meson.build | 5 +++++ hw/meson.build | 1 + target/Kconfig | 1 + target/any/Kconfig | 4 ++++ target/any/meson.build | 7 +++++++ target/meson.build | 1 + 15 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 configs/devices/any-softmmu/default.mak create mode 100644 configs/targets/any-softmmu.mak create mode 100644 target/any/cpu-param.h create mode 100644 target/any/cpu-qom.h create mode 100644 target/any/cpu.h create mode 100644 hw/any/meson.build create mode 100644 target/any/Kconfig create mode 100644 target/any/meson.build