2023-12-17 18:12:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/Targets/TargetDescription/TargetDescriptionFile.hpp"
|
|
|
|
|
|
2024-07-23 21:14:22 +01:00
|
|
|
namespace Targets::RiscV
|
2023-12-17 18:12:53 +00:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Represents an RISC-V TDF.
|
|
|
|
|
*
|
|
|
|
|
* For more information of TDFs, see src/Targets/TargetDescription/README.md
|
|
|
|
|
*/
|
|
|
|
|
class TargetDescriptionFile: public Targets::TargetDescription::TargetDescriptionFile
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit TargetDescriptionFile(const std::string& xmlFilePath);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the RISC-V target ID from the TDF.
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
[[nodiscard]] std::string getTargetId() const;
|
|
|
|
|
|
2024-07-23 21:14:22 +01:00
|
|
|
[[nodiscard]] TargetAddressSpaceDescriptor getSystemAddressSpaceDescriptor() const;
|
2023-12-17 18:12:53 +00:00
|
|
|
};
|
|
|
|
|
}
|