Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
a5d966ac
Commit
a5d966ac
authored
Feb 15, 2015
by
yoogx
Browse files
* Return an error message if device is not bound to a
processor. For issue #26
parent
d91a84bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-pok_c-naming.adb
View file @
a5d966ac
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
4
ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
5
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the --
...
...
@@ -36,6 +36,7 @@ with Ocarina.ME_AADL;
with
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nodes
;
with
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nutils
;
with
Ocarina
.
ME_AADL
.
AADL_Instances
.
Entities
;
with
Ocarina
.
Backends
.
Messages
;
with
Ocarina
.
Backends
.
Properties
;
with
Ocarina
.
Backends
.
C_Common
.
Mapping
;
with
Ocarina
.
Backends
.
C_Tree
.
Nodes
;
...
...
@@ -50,6 +51,7 @@ package body Ocarina.Backends.POK_C.Naming is
use
Ocarina
.
Backends
.
C_Common
.
Mapping
;
use
Ocarina
.
Backends
.
C_Tree
.
Nutils
;
use
Ocarina
.
Backends
.
Properties
;
use
Ocarina
.
Backends
.
Messages
;
package
AIN
renames
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nodes
;
package
AINU
renames
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nutils
;
...
...
@@ -131,9 +133,18 @@ package body Ocarina.Backends.POK_C.Naming is
procedure
Visit_First_Pass_Process_Or_Device
(
E
:
Node_Id
)
is
N
:
Node_Id
;
Processes_List
:
List_Id
;
Proc
:
constant
Node_Id
:=
Get_Bound_Processor
(
E
);
begin
if
No
(
Proc
)
then
Display_Located_Error
(
Loc
(
Parent_Subcomponent
(
E
)),
"This device or process is not bound to a processor"
,
Fatal
=>
True
,
Warning
=>
False
);
end
if
;
Processes_List
:=
CTN
.
Processes
(
Backend_Node
(
Identifier
(
Get_Bound_Processor
(
E
)
)));
CTN
.
Processes
(
Backend_Node
(
Identifier
(
Proc
)));
N
:=
AINU
.
Make_Node_Container
(
E
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment